QTfrontend/gameuiconfig.cpp
changeset 654 1019b8fa8638
parent 647 798c7dbf8bb8
child 657 b34fc518a48a
--- a/QTfrontend/gameuiconfig.cpp	Thu Dec 13 21:31:47 2007 +0000
+++ b/QTfrontend/gameuiconfig.cpp	Thu Dec 13 21:49:52 2007 +0000
@@ -39,7 +39,10 @@
 	Form->ui.pageOptions->CBEnableSound->setChecked(value("audio/sound", true).toBool());
 
 	Form->ui.pageOptions->editNetNick->setText(value("net/nick", QLineEdit::tr("unnamed")).toString());
-//	Form->ui.pageNet->editIP->setText(value("net/ip", "").toString());
+
+	delete netHost;
+	netHost = new QString(value("net/ip", "").toString());
+	netPort = value("net/port", 46631).toUInt();
 
 	Form->ui.pageOptions->CBShowFPS->setChecked(value("fps/show", false).toBool());
 	Form->ui.pageOptions->fpsedit->setValue(value("fps/interval", 27).toUInt());
@@ -71,7 +74,8 @@
 	setValue("audio/sound", isSoundEnabled());
 
 	setValue("net/nick", Form->ui.pageOptions->editNetNick->text());
-//	setValue("net/ip", Form->ui.pageNet->editIP->text());
+	setValue("net/ip", *netHost);
+	setValue("net/port", netPort);
 
 	setValue("fps/show", isShowFPSEnabled());
 	setValue("fps/interval", Form->ui.pageOptions->fpsedit->value());