Debugger: Robustify MainWindow state saving

Save the state before child widgets are affected.

Task-number: QTCREATORBUG-20721
Change-Id: I1d0d1ca610b0a8e8904585953ecbb42dddee4827
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
hjk
2018-07-06 13:28:31 +02:00
parent 887cdfa7e9
commit cb572773c0
2 changed files with 2 additions and 1 deletions

View File

@@ -2799,7 +2799,6 @@ void DebuggerPluginPrivate::aboutToShutdown()
disconnect(SessionManager::instance(), &SessionManager::startupProjectChanged, this, nullptr);
m_mainWindow->saveCurrentPerspective();
m_shutdownTimer.setInterval(0);
m_shutdownTimer.setSingleShot(true);
connect(&m_shutdownTimer, &QTimer::timeout, this, &DebuggerPluginPrivate::doShutdown);