Fix page switching issue when disconnected
authorunc0rr
Fri, 09 Jan 2009 17:56:53 +0000
changeset 1627 efcf6e976869
parent 1626 58fd5bc49a04
child 1628 4939254196d6
Fix page switching issue when disconnected
QTfrontend/hwform.cpp
--- a/QTfrontend/hwform.cpp	Fri Jan 09 17:27:13 2009 +0000
+++ b/QTfrontend/hwform.cpp	Fri Jan 09 17:56:53 2009 +0000
@@ -296,13 +296,16 @@
 		    curTeamSelWidget->addTeam(*editedTeam);
 		  }
 		} else if(lastid != ID_PAGE_GAMESTATS && lastid != ID_PAGE_INGAME) {
-		  curTeamSelWidget->resetPlayingTeams(teamsList);
+			curTeamSelWidget->resetPlayingTeams(teamsList);
 		}
 	} else
 	if (id == ID_PAGE_GAMESTATS)
 	{
 		ui.pageGameStats->renderStats();
 	}
+
+	if ((lastid == ID_PAGE_GAMESTATS) && !hwnet)
+		GoBack();
 }
 
 void HWForm::GoToPage(quint8 id)