From e7fb0e56cea45c81ad61507af660bfe6ae196950 Mon Sep 17 00:00:00 2001 From: Kai Pastor Date: Fri, 2 Oct 2020 07:37:34 +0200 Subject: [PATCH] Revert "MainWindow: Shorten event processing on message" This reverts commit 1fde405d1b914da06ba5f7ad999170d8edfb0c9a. --- src/gui/main_window.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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()