# HG changeset patch
# User blackmetalowiec
# Date 1323256776 -3600
# Node ID 677b96d13e1f0abb9ea53673d012f08b5dc04ed5
# Parent  0df7f6697939cacbeeb99fd06422ac3d00172056
Auto refresh room list after leaving room. Fixes  issue #320 for voluntarily and involuntarily coming to room list.

diff -r 0df7f6697939 -r 677b96d13e1f QTfrontend/net/newnetclient.cpp
--- 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()