Auto refresh room list after leaving room. Fixes
issue #320 for voluntarily and involuntarily coming to room list.
--- a/QTfrontend/net/newnetclient.cpp Wed Dec 07 08:01:18 2011 +0300
+++ b/QTfrontend/net/newnetclient.cpp Wed Dec 07 12:19:36 2011 +0100
@@ -376,12 +376,14 @@
if(lst[0] == "ROOMABANDONED") {
netClientState = InLobby;
+ askRoomsList();
emit LeftRoom(tr("Room destroyed"));
return;
}
if(lst[0] == "KICKED") {
netClientState = InLobby;
+ askRoomsList();
emit LeftRoom(tr("You got kicked"));
return;
}
@@ -746,6 +748,7 @@
{
netClientState = InLobby;
RawSendNet(QString("PART"));
+ askRoomsList();
}
bool HWNewNet::isInRoom()