Skip to content

Commit

Permalink
Revert "MainWindow: Shorten event processing on message"
Browse files Browse the repository at this point in the history
This reverts commit 1fde405.
  • Loading branch information
dg0yt committed Oct 2, 2020
1 parent 98818de commit e7fb0e5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/gui/main_window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit e7fb0e5

Please sign in to comment.