QTfrontend/gameuiconfig.cpp
changeset 657 b34fc518a48a
parent 654 1019b8fa8638
child 674 a15c8e3c69b3
--- a/QTfrontend/gameuiconfig.cpp	Thu Dec 13 22:46:36 2007 +0000
+++ b/QTfrontend/gameuiconfig.cpp	Thu Dec 13 23:07:16 2007 +0000
@@ -44,6 +44,9 @@
 	netHost = new QString(value("net/ip", "").toString());
 	netPort = value("net/port", 46631).toUInt();
 
+	Form->ui.pageNetServer->leServerDescr->setText(value("net/servername", "hedgewars server").toString());
+	Form->ui.pageNetServer->sbPort->setValue(value("net/serverport", 46631).toUInt());
+
 	Form->ui.pageOptions->CBShowFPS->setChecked(value("fps/show", false).toBool());
 	Form->ui.pageOptions->fpsedit->setValue(value("fps/interval", 27).toUInt());
 
@@ -76,6 +79,8 @@
 	setValue("net/nick", Form->ui.pageOptions->editNetNick->text());
 	setValue("net/ip", *netHost);
 	setValue("net/port", netPort);
+	setValue("net/servername", Form->ui.pageNetServer->leServerDescr->text());
+	setValue("net/serverport", Form->ui.pageNetServer->sbPort->value());
 
 	setValue("fps/show", isShowFPSEnabled());
 	setValue("fps/interval", Form->ui.pageOptions->fpsedit->value());