MainWindow: try to reduce screen flicker when (re)starting a game

This commit is contained in:
Olivier Teulière 2013-01-20 11:47:05 +01:00
parent ff4b91459e
commit 272867c3ad

View file

@ -382,6 +382,9 @@ void MainWindow::prefsUpdated()
void MainWindow::updateForGame(PublicGame *iGame)
{
// Try to reduce flicker
setUpdatesEnabled(false);
if (iGame == NULL)
{
m_actionGameSaveAs->setEnabled(false);
@ -536,6 +539,9 @@ void MainWindow::updateForGame(PublicGame *iGame)
m_scoresWidget, SLOT(refresh()));
}
}
// Restore visual updates
setUpdatesEnabled(true);
}