QTfrontend/hwform.cpp
changeset 1627 efcf6e976869
parent 1625 37aae47943ce
child 1648 32d99a3c7998
equal deleted inserted replaced
1626:58fd5bc49a04 1627:efcf6e976869
   294 		if(lastid == ID_PAGE_SETUP) { // _TEAM
   294 		if(lastid == ID_PAGE_SETUP) { // _TEAM
   295 		  if (editedTeam) {
   295 		  if (editedTeam) {
   296 		    curTeamSelWidget->addTeam(*editedTeam);
   296 		    curTeamSelWidget->addTeam(*editedTeam);
   297 		  }
   297 		  }
   298 		} else if(lastid != ID_PAGE_GAMESTATS && lastid != ID_PAGE_INGAME) {
   298 		} else if(lastid != ID_PAGE_GAMESTATS && lastid != ID_PAGE_INGAME) {
   299 		  curTeamSelWidget->resetPlayingTeams(teamsList);
   299 			curTeamSelWidget->resetPlayingTeams(teamsList);
   300 		}
   300 		}
   301 	} else
   301 	} else
   302 	if (id == ID_PAGE_GAMESTATS)
   302 	if (id == ID_PAGE_GAMESTATS)
   303 	{
   303 	{
   304 		ui.pageGameStats->renderStats();
   304 		ui.pageGameStats->renderStats();
   305 	}
   305 	}
       
   306 
       
   307 	if ((lastid == ID_PAGE_GAMESTATS) && !hwnet)
       
   308 		GoBack();
   306 }
   309 }
   307 
   310 
   308 void HWForm::GoToPage(quint8 id)
   311 void HWForm::GoToPage(quint8 id)
   309 {
   312 {
   310 	quint8 lastid = ui.Pages->currentIndex();
   313 	quint8 lastid = ui.Pages->currentIndex();