QTfrontend/hwform.cpp
changeset 6227 ce60b734fff1
parent 6225 505643d4c23d
child 6428 2d2b5e3c59a7
--- a/QTfrontend/hwform.cpp	Sat Oct 29 09:19:04 2011 +0200
+++ b/QTfrontend/hwform.cpp	Sat Oct 29 11:47:37 2011 +0200
@@ -755,6 +755,9 @@
     hwnet->NewNick(newNick);
     config->setValue("net/nick", newNick);
     config->updNetNick();
+
+    ui.pageRoomsList->setUser(nick);
+    ui.pageNetGame->setUser(nick);
 }
 
 void HWForm::NetAuthFailed()
@@ -800,8 +803,6 @@
         hwnet=0;
     }
 
-    ui.pageRoomsList->chatWidget->clear();
-
     hwnet = new HWNewNet();
 
     GoToPage(ID_PAGE_CONNECTING);
@@ -939,6 +940,10 @@
         config->setValue("net/nick",nick);
         config->updNetNick();
     }
+
+    ui.pageRoomsList->setUser(nick);
+    ui.pageNetGame->setUser(nick);
+
     hwnet->Connect(hostName, port, nick);
 }