forked from qt-creator/qt-creator
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user