QTfrontend/hwform.cpp
changeset 661 0523b15353a2
parent 660 7c155e849602
child 664 f0af2401f981
equal deleted inserted replaced
660:7c155e849602 661:0523b15353a2
   496 void HWForm::GameStateChanged(GameState gameState)
   496 void HWForm::GameStateChanged(GameState gameState)
   497 {
   497 {
   498 	switch(gameState) {
   498 	switch(gameState) {
   499 		case gsStarted: {
   499 		case gsStarted: {
   500 			ui.pageGameStats->labelGameStats->setText("");
   500 			ui.pageGameStats->labelGameStats->setText("");
       
   501 			if (pRegisterServer)
       
   502 			{
       
   503 				pRegisterServer->unregister();
       
   504 				pRegisterServer = 0;
       
   505 			}
   501 			break;
   506 			break;
   502 		}
   507 		}
   503 		case gsFinished: {
   508 		case gsFinished: {
   504 			GoToPage(ID_PAGE_GAMESTATS);
   509 			GoToPage(ID_PAGE_GAMESTATS);
   505 			break;
   510 			break;