QTfrontend/hwform.cpp
changeset 4908 99d6797b7ff4
parent 4902 45ec26ca9491
child 4976 088d40d8aba2
equal deleted inserted replaced
4907:8bf14795a528 4908:99d6797b7ff4
   968             setFocusPolicy(Qt::StrongFocus);
   968             setFocusPolicy(Qt::StrongFocus);
   969             if (id == ID_PAGE_INGAME) GoBack();
   969             if (id == ID_PAGE_INGAME) GoBack();
   970             Music(ui.pageOptions->CBEnableFrontendMusic->isChecked());
   970             Music(ui.pageOptions->CBEnableFrontendMusic->isChecked());
   971             if (wBackground) wBackground->startAnimation();
   971             if (wBackground) wBackground->startAnimation();
   972             GoToPage(ID_PAGE_GAMESTATS);
   972             GoToPage(ID_PAGE_GAMESTATS);
   973             if (hwnet && (!game || !game->netSuspend)) hwnet->gameFinished();
   973             if (hwnet && (!game || !game->netSuspend)) hwnet->gameFinished(true);
   974             if (game) game->netSuspend = false;
   974             if (game) game->netSuspend = false;
   975             break;
   975             break;
   976         }
   976         }
   977         default: {
   977         default: {
   978             //setVisible(true);
   978             //setVisible(true);
   983                 (hwnet && hwnet->isRoomChief() && hwnet->isInRoom() && 
   983                 (hwnet && hwnet->isRoomChief() && hwnet->isInRoom() && 
   984                     (gameState == gsInterrupted || gameState == gsStopped || gameState == gsDestroyed || gameState == gsHalted))) {
   984                     (gameState == gsInterrupted || gameState == gsStopped || gameState == gsDestroyed || gameState == gsHalted))) {
   985                 if (id == ID_PAGE_INGAME) GoBack();
   985                 if (id == ID_PAGE_INGAME) GoBack();
   986                 Music(ui.pageOptions->CBEnableFrontendMusic->isChecked());
   986                 Music(ui.pageOptions->CBEnableFrontendMusic->isChecked());
   987                 if (wBackground) wBackground->startAnimation();
   987                 if (wBackground) wBackground->startAnimation();
   988                 if (hwnet) hwnet->gameFinished();
   988                 if (hwnet) hwnet->gameFinished(false);
   989             }
   989             }
   990             if (gameState == gsHalted) close();
   990             if (gameState == gsHalted) close();
   991         };
   991         };
   992     }
   992     }
   993 }
   993 }