QTfrontend/gameuiconfig.cpp
changeset 949 866729775535
parent 883 07a568ba44e0
child 1066 1f1b3686a2b0
--- a/QTfrontend/gameuiconfig.cpp	Sat May 24 22:28:40 2008 +0000
+++ b/QTfrontend/gameuiconfig.cpp	Sun May 25 14:09:44 2008 +0000
@@ -78,7 +78,7 @@
 
 	setValue("audio/sound", isSoundEnabled());
 
-	setValue("net/nick", Form->ui.pageOptions->editNetNick->text());
+	setValue("net/nick", netNick());
 	setValue("net/ip", *netHost);
 	setValue("net/port", netPort);
 	setValue("net/servername", Form->ui.pageNetServer->leServerDescr->text());
@@ -134,3 +134,8 @@
 {
 	return depth;
 }
+
+QString GameUIConfig::netNick()
+{
+	return Form->ui.pageOptions->editNetNick->text();
+}