forked from qt-creator/qt-creator
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:
committed by
Orgad Shaneh
parent
3b8362d0c4
commit
6c5d1aee29
@@ -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();
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user