Skip to content

Commit

Permalink
Make sure that we always use our in-house processEvents() method.
Browse files Browse the repository at this point in the history
  • Loading branch information
agarny committed Apr 18, 2018
1 parent 9dde3e7 commit 6d6c8f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Expand Up @@ -1122,7 +1122,7 @@ void Property::setColorValue(const QPoint &pPoint)
// time round, we will have to click anywhere in OpenCOR for
// OpenCOR to get the focus back...

QCoreApplication::processEvents();
mOwner->processEvents();
}
}

Expand Down
Expand Up @@ -194,7 +194,7 @@ void FileBrowserWindowWidget::loadSettings(QSettings *pSettings)
// Note: indeed, to process pending events only in directoryLoaded() is not
// good enough (anymore?!) on macOS...

QCoreApplication::processEvents();
processEvents();

// Let the user know of a few default things about ourselves by emitting a
// few signals
Expand Down Expand Up @@ -535,7 +535,7 @@ void FileBrowserWindowWidget::directoryLoaded(const QString &pPath)
// Windows doesn't need this, Linux and macOS definitely do and it can't
// harm having it for all three environments)

QCoreApplication::processEvents();
processEvents();

QModelIndex initPathDirIndex = mModel->index(mInitPathDir);

Expand Down

0 comments on commit 6d6c8f4

Please sign in to comment.