Commit 6c5d1aee authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh

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's avatarEike Ziller <eike.ziller@qt.io>
parent 3b8362d0
......@@ -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();
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment