diff --git a/src/gui/main_window.cpp b/src/gui/main_window.cpp index f661cfe41..7bf152743 100644 --- a/src/gui/main_window.cpp +++ b/src/gui/main_window.cpp @@ -533,7 +533,10 @@ void MainWindow::showStatusBarMessage(const QString& text, int timeout) void MainWindow::showStatusBarMessageImmediately(const QString& text, int timeout) { showStatusBarMessage(text, timeout); - QApplication::processEvents(QEventLoop::ExcludeUserInputEvents, 10 /* ms */); + // Make sure that paint events reach the user screen, by processing events + // until the queue is empty, including events appended during processing. + // In the worst case, this will stop after 100 ms. + QApplication::processEvents(QEventLoop::ExcludeUserInputEvents, 100 /* ms */); } void MainWindow::clearStatusBarMessage()