--- a/QTfrontend/hwform.cpp Fri Jan 02 17:33:56 2009 +0000
+++ b/QTfrontend/hwform.cpp Fri Jan 02 19:44:52 2009 +0000
@@ -435,6 +435,7 @@
}
ui.pageNetGame->pChatWidget->clear();
+ ui.pageRoomsList->chatWidget->clear();
hwnet = new HWNewNet(config, ui.pageNetGame->pGameCFG, ui.pageNetGame->pNetTeamsWidget);
@@ -471,11 +472,16 @@
hwnet, SLOT(chatLineToNet(const QString&)));
connect(ui.pageNetGame->pChatWidget, SIGNAL(kick(const QString&)),
hwnet, SLOT(kickPlayer(const QString&)));
+ connect(ui.pageNetGame->BtnGo, SIGNAL(clicked()), hwnet, SLOT(ToggleReady()));
+
connect(hwnet, SIGNAL(nickAdded(const QString&)),
ui.pageNetGame->pChatWidget, SLOT(nickAdded(const QString&)));
connect(hwnet, SIGNAL(nickRemoved(const QString&)),
ui.pageNetGame->pChatWidget, SLOT(nickRemoved(const QString&)));
- connect(ui.pageNetGame->BtnGo, SIGNAL(clicked()), hwnet, SLOT(ToggleReady()));
+ connect(hwnet, SIGNAL(nickAddedLobby(const QString&)),
+ ui.pageRoomsList->chatWidget, SLOT(nickAdded(const QString&)));
+ connect(hwnet, SIGNAL(nickRemovedLobby(const QString&)),
+ ui.pageRoomsList->chatWidget, SLOT(nickRemoved(const QString&)));
connect(ui.pageNetGame->pNetTeamsWidget, SIGNAL(hhogsNumChanged(const HWTeam&)),
hwnet, SLOT(onHedgehogsNumChanged(const HWTeam&)));