From 089734a6c89b221e194d43a6695cb31c0db8afbb Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Fri, 26 Apr 2019 16:46:09 +0200 Subject: [PATCH] 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 --- src/plugins/projectexplorer/session.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/plugins/projectexplorer/session.cpp b/src/plugins/projectexplorer/session.cpp index 26a70669d44..bf763581fd8 100644 --- a/src/plugins/projectexplorer/session.cpp +++ b/src/plugins/projectexplorer/session.cpp @@ -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);