ProjectExplorer: Remove repeated call to processEvents()

If the second call really serves a purpose, we will find out eventually
and can add it back in with a proper comment.

Change-Id: Id4db1e59d771578f0eceebb6829ecf12e7da4d49
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Christian Kandeler
2019-04-26 16:46:09 +02:00
parent cbab457cf4
commit 089734a6c8

View File

@@ -1002,11 +1002,8 @@ bool SessionManager::loadSession(const QString &session)
d->m_future.setProgressRange(0, projectPathsToLoad.count() + 1/*initialization above*/ + 1/*editors*/);
d->m_future.setProgressValue(1);
QCoreApplication::processEvents(QEventLoop::ExcludeUserInputEvents);
// if one processEvents doesn't get the job done
// just use two!
QCoreApplication::processEvents(QEventLoop::ExcludeUserInputEvents);
QCoreApplication::processEvents(QEventLoop::ExcludeUserInputEvents);
d->restoreProjects(projectPathsToLoad);
d->sessionLoadingProgress();
d->restoreDependencies(reader);