Set m_game_connected to false after emitting Disconnected(). This fixes a bug in a case such that when entering an invalid password, the game would bring you back to the main menu.
authorZorg <zorgiepoo@gmail.com>
Wed, 08 Jun 2011 23:25:05 -0400
changeset 5230 c088be28d5e8
parent 5229 148d581b17ab
child 5231 29a3a9309f2c
Set m_game_connected to false after emitting Disconnected(). This fixes a bug in a case such that when entering an invalid password, the game would bring you back to the main menu.
QTfrontend/newnetclient.cpp
--- a/QTfrontend/newnetclient.cpp	Wed Jun 08 03:36:54 2011 -0400
+++ b/QTfrontend/newnetclient.cpp	Wed Jun 08 23:25:05 2011 -0400
@@ -189,6 +189,7 @@
 void HWNewNet::displayError(QAbstractSocket::SocketError socketError)
 {
     emit Disconnected();
+    m_game_connected = false;
 
     switch (socketError) {
         case QAbstractSocket::RemoteHostClosedError: