equal
deleted
inserted
replaced
1744 setFocusPolicy(Qt::StrongFocus); |
1744 setFocusPolicy(Qt::StrongFocus); |
1745 if (id == ID_PAGE_INGAME) GoBack(); |
1745 if (id == ID_PAGE_INGAME) GoBack(); |
1746 Music(ui.pageOptions->CBFrontendMusic->isChecked()); |
1746 Music(ui.pageOptions->CBFrontendMusic->isChecked()); |
1747 if (wBackground) wBackground->startAnimation(); |
1747 if (wBackground) wBackground->startAnimation(); |
1748 GoToPage(ID_PAGE_GAMESTATS); |
1748 GoToPage(ID_PAGE_GAMESTATS); |
1749 if (hwnet && (!game || !game->netSuspend)) hwnet->gameFinished(true); |
1749 if (hwnet) |
|
1750 { |
|
1751 if (!game || !game->netSuspend) |
|
1752 hwnet->gameFinished(true); |
|
1753 // After a game, the local player might have pseudo-teams left |
|
1754 // when rejoining a previously left game. This makes sure the |
|
1755 // teams list is in a consistent state. |
|
1756 ui.pageNetGame->cleanupFakeNetTeams(); |
|
1757 } |
1750 if (game) game->netSuspend = false; |
1758 if (game) game->netSuspend = false; |
1751 break; |
1759 break; |
1752 } |
1760 } |
1753 default: |
1761 default: |
1754 { |
1762 { |