Skip to content

Commit

Permalink
Merge master into release
Browse files Browse the repository at this point in the history
  • Loading branch information
dg0yt authored Oct 3, 2020
2 parents 091d58a + e7fb0e5 commit ac4b084
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 ac4b084

Please sign in to comment.