ProjectExplorer: Avoid updates to welcome during shutdown

It causes a crash when shutting down while the debugger is running.

Change-Id: I2f8e7dd957b5337e5c6891263d8e73bb37fff681
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Orgad Shaneh
2017-07-05 18:18:33 +03:00
committed by Orgad Shaneh
parent 3b8362d0c4
commit 6c5d1aee29

View File

@@ -1156,7 +1156,7 @@ bool ProjectExplorerPlugin::initialize(const QStringList &arguments, QString *er
SessionManager::save();
});
connect(qApp, &QApplication::applicationStateChanged, this, [](Qt::ApplicationState state) {
if (state == Qt::ApplicationActive)
if (!dd->m_shuttingDown && state == Qt::ApplicationActive)
dd->updateWelcomePage();
});