QTfrontend/hwform.cpp
changeset 350 c3ccec3834e8
parent 347 6521e1b2cd40
child 352 4665bfe25470
--- a/QTfrontend/hwform.cpp	Thu Jan 18 19:59:04 2007 +0000
+++ b/QTfrontend/hwform.cpp	Thu Jan 18 20:29:28 2007 +0000
@@ -180,6 +180,9 @@
 
 void HWForm::GoBack()
 {
+	if (!PagesStack.isEmpty() && PagesStack.top() == ID_PAGE_NET) {
+	  NetDisconnect();
+	}
 	quint8 id = PagesStack.isEmpty() ? ID_PAGE_MAIN : PagesStack.pop();
 	OnPageShown(id);
 	ui.Pages->setCurrentIndex(id);
@@ -280,7 +283,6 @@
 void HWForm::NetDisconnect()
 {
   hwnet->Disconnect();
-  GoBack();
   delete hwnet;
   hwnet=0;
   if(pnetserver) {