Fix disconnection from server
authorunc0rr
Fri, 17 Apr 2009 12:20:19 +0000
changeset 1998 c22af5e8b636
parent 1997 cd66434351cf
child 1999 a28dcfe658e3
Fix disconnection from server
QTfrontend/hwform.cpp
--- a/QTfrontend/hwform.cpp	Tue Apr 14 19:05:23 2009 +0000
+++ b/QTfrontend/hwform.cpp	Fri Apr 17 12:20:19 2009 +0000
@@ -373,9 +373,7 @@
 		if (id == ID_PAGE_NETGAME || id == ID_PAGE_NETGAME)
 			GoBack();
 
-	if (id == ID_PAGE_NET) {
-		if(hwnet || pnetserver) NetDisconnect();
-	}
+	if (curid == ID_PAGE_ROOMSLIST) NetDisconnect();
 
 	if (curid == ID_PAGE_SCHEME)
 		ammoSchemeModel->Save();