equal
deleted
inserted
replaced
1461 case gsFinished: |
1461 case gsFinished: |
1462 { |
1462 { |
1463 //setVisible(true); |
1463 //setVisible(true); |
1464 setFocusPolicy(Qt::StrongFocus); |
1464 setFocusPolicy(Qt::StrongFocus); |
1465 if (id == ID_PAGE_INGAME) GoBack(); |
1465 if (id == ID_PAGE_INGAME) GoBack(); |
1466 Music(ui.pageOptions->CBEnableFrontendMusic->isChecked()); |
1466 Music(ui.pageOptions->CBFrontendMusic->isChecked()); |
1467 if (wBackground) wBackground->startAnimation(); |
1467 if (wBackground) wBackground->startAnimation(); |
1468 GoToPage(ID_PAGE_GAMESTATS); |
1468 GoToPage(ID_PAGE_GAMESTATS); |
1469 if (hwnet && (!game || !game->netSuspend)) hwnet->gameFinished(true); |
1469 if (hwnet && (!game || !game->netSuspend)) hwnet->gameFinished(true); |
1470 if (game) game->netSuspend = false; |
1470 if (game) game->netSuspend = false; |
1471 break; |
1471 break; |
1479 // was room chief and the game was aborted |
1479 // was room chief and the game was aborted |
1480 (hwnet && hwnet->isRoomChief() && hwnet->isInRoom() && |
1480 (hwnet && hwnet->isRoomChief() && hwnet->isInRoom() && |
1481 (gameState == gsInterrupted || gameState == gsStopped || gameState == gsDestroyed || gameState == gsHalted))) |
1481 (gameState == gsInterrupted || gameState == gsStopped || gameState == gsDestroyed || gameState == gsHalted))) |
1482 { |
1482 { |
1483 if (id == ID_PAGE_INGAME) GoBack(); |
1483 if (id == ID_PAGE_INGAME) GoBack(); |
1484 Music(ui.pageOptions->CBEnableFrontendMusic->isChecked()); |
1484 Music(ui.pageOptions->CBFrontendMusic->isChecked()); |
1485 if (wBackground) wBackground->startAnimation(); |
1485 if (wBackground) wBackground->startAnimation(); |
1486 if (hwnet) hwnet->gameFinished(false); |
1486 if (hwnet) hwnet->gameFinished(false); |
1487 } |
1487 } |
1488 if (gameState == gsHalted) close(); |
1488 if (gameState == gsHalted) close(); |
1489 }; |
1489 }; |