Correctly handle disconnect when on stats page
authorunc0rr
Wed, 14 Jan 2009 16:41:29 +0000
changeset 1670 a2035c5d6089
parent 1669 b709e061577e
child 1671 bb12cb688f75
Correctly handle disconnect when on stats page
QTfrontend/hwform.cpp
--- a/QTfrontend/hwform.cpp	Wed Jan 14 16:36:16 2009 +0000
+++ b/QTfrontend/hwform.cpp	Wed Jan 14 16:41:29 2009 +0000
@@ -304,8 +304,8 @@
 		ui.pageGameStats->renderStats();
 	}
 
-//	if ((lastid == ID_PAGE_GAMESTATS) && !hwnet)
-//		GoBack();
+	if ((lastid == ID_PAGE_GAMESTATS) && (id == ID_PAGE_NETGAME) && !hwnet)
+		GoBack();
 }
 
 void HWForm::GoToPage(quint8 id)