# HG changeset patch # User Zorg # Date 1307589905 14400 # Node ID c088be28d5e81f1f9854227040f4100bf1873291 # Parent 148d581b17ab98c010f655f3dbd14499d07ba96d 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. diff -r 148d581b17ab -r c088be28d5e8 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: