QTfrontend/hwform.cpp
changeset 647 798c7dbf8bb8
parent 646 ed610c2cd0a4
child 653 4f44fc06ca45
--- a/QTfrontend/hwform.cpp	Thu Dec 13 12:39:26 2007 +0000
+++ b/QTfrontend/hwform.cpp	Thu Dec 13 13:49:20 2007 +0000
@@ -349,7 +349,7 @@
 			  tr("OK"));
     return ;
   }
-  _NetConnect(curritem->text(), 46631, ui.pageNet->editNetNick->text());
+  _NetConnect(curritem->text(), 46631, ui.pageOptions->editNetNick->text());
 }
 
 void HWForm::_NetConnect(const QString & hostName, quint16 port, const QString & nick)
@@ -415,7 +415,7 @@
 {
   pnetserver = new HWNetServer;
   pnetserver->StartServer();
-  _NetConnect("localhost", pnetserver->getRunningPort(), ui.pageNet->editNetNick->text());
+  _NetConnect("localhost", pnetserver->getRunningPort(), ui.pageOptions->editNetNick->text());
 
   if (ui.pageNet->rbLocalGame->isChecked())
     pRegisterServer = new HWNetUdpServer(0, "hedgewars server", 46631);