# HG changeset patch # User sheepluva # Date 1315760274 -7200 # Node ID b102aa6a853eaea7b95c89aa0ab619c78d566418 # Parent 0141ab2ef67bc085a12754d6fb5cab7db3132783 fix for disconnect reason not being shown diff -r 0141ab2ef67b -r b102aa6a853e QTfrontend/newnetclient.cpp --- a/QTfrontend/newnetclient.cpp Sun Sep 11 18:37:34 2011 +0200 +++ b/QTfrontend/newnetclient.cpp Sun Sep 11 18:57:54 2011 +0200 @@ -496,17 +496,6 @@ emit AskForRunGame(); return; } - - if (lst[0] == "BYE") { - if (lst[1] == "Authentication failed") - { - // Set the password blank if case the user tries to join and enter his password again - config->setValue("net/passwordlength", 0); - config->setNetPasswordLength(0); - } - // return early so the user won't get an unknown error message dialog (the user already gets a server connection is lost one) - return; - } if (lst[0] == "ASKPASSWORD") { bool ok = false; @@ -625,6 +614,12 @@ qWarning("Net: Bad BYE message"); return; } + if (lst[1] == "Authentication failed") + { + // Set the password blank if case the user tries to join and enter his password again + config->setValue("net/passwordlength", 0); + config->setNetPasswordLength(0); + } emit showMessage(HWNewNet::tr("Quit reason: ") + lst[1]); return; }