forked from qt-creator/qt-creator
Open project from command line: Postpone the actual opening via a timer
This feels better, should not break anything. Change-Id: Ibd0b8c20dce346e10cb7a35d6785ea2cb29f0e51 Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -880,6 +880,10 @@ bool SessionManager::loadSession(const QString &session)
|
||||
m_future.setProgressRange(0, fileList.count() + openEditorsCount + 2);
|
||||
m_future.setProgressValue(1);
|
||||
|
||||
// if one processEvents doesn't get the job done
|
||||
// just use two!
|
||||
QCoreApplication::processEvents(QEventLoop::ExcludeUserInputEvents);
|
||||
QCoreApplication::processEvents(QEventLoop::ExcludeUserInputEvents);
|
||||
restoreProjects(fileList);
|
||||
sessionLoadingProgress();
|
||||
restoreDependencies(reader);
|
||||
|
||||
Reference in New Issue
Block a user