QTfrontend/gameuiconfig.cpp
changeset 111 30ca06092a64
parent 97 e7c1df9cce2c
child 127 ca70467bd0a8
--- a/QTfrontend/gameuiconfig.cpp	Mon Aug 14 14:49:40 2006 +0000
+++ b/QTfrontend/gameuiconfig.cpp	Wed Aug 16 11:41:00 2006 +0000
@@ -68,7 +68,11 @@
 			} else
 			if (str.startsWith("nick "))
 			{
-				Form->ui.pageOptions->editNetNick->setText(str.mid(5));
+				Form->ui.pageNet->editNetNick->setText(str.mid(5));
+			} else
+			if (str.startsWith("ip "))
+			{
+				Form->ui.pageNet->editIP->setText(str.mid(3));
 			}
 		}
 		settings.close();
@@ -97,7 +101,8 @@
 	stream << "resolution " << Form->ui.pageOptions->CBResolution->currentIndex() << endl;
 	stream << "fullscreen " << Form->ui.pageOptions->CBFullscreen->isChecked() << endl;
 	stream << "sound " << Form->ui.pageOptions->CBEnableSound->isChecked() << endl;
-	stream << "nick " << Form->ui.pageOptions->editNetNick->text() << endl;
+	stream << "nick " << Form->ui.pageNet->editNetNick->text() << endl;
+	stream << "ip " << Form->ui.pageNet->editIP->text() << endl;
 	settings.close();
 }