From 272867c3ad1d91660d8207a40ca55b7c924e4c2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Teuli=C3=A8re?= Date: Sun, 20 Jan 2013 11:47:05 +0100 Subject: [PATCH] MainWindow: try to reduce screen flicker when (re)starting a game --- qt/main_window.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/qt/main_window.cpp b/qt/main_window.cpp index 2467486..111559b 100644 --- a/qt/main_window.cpp +++ b/qt/main_window.cpp @@ -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); }