From 6c5d1aee2964d0140627a24f09dd14257d4cb29d Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Wed, 5 Jul 2017 18:18:33 +0300 Subject: [PATCH] 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 --- src/plugins/projectexplorer/projectexplorer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/projectexplorer/projectexplorer.cpp b/src/plugins/projectexplorer/projectexplorer.cpp index 6351c228ce7..f71cc7cb94b 100644 --- a/src/plugins/projectexplorer/projectexplorer.cpp +++ b/src/plugins/projectexplorer/projectexplorer.cpp @@ -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(); });