Core: Give a hint why saving of settings are requested

Not all requests are the same, handling code might want to act
differently on different request reasons.

Main driver here is the handling of the debugger/analyzer main window
state savings which depends on actual visibility of certain windows.

Change-Id: I87b2a9149e3d09d27bc14b44aace9f2e0686db04
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
hjk
2019-06-03 09:32:15 +02:00
parent 23c222f61b
commit 4742216feb
5 changed files with 15 additions and 8 deletions

View File

@@ -322,7 +322,7 @@ void MainWindow::closeEvent(QCloseEvent *event)
return;
}
ICore::saveSettings();
ICore::saveSettings(ICore::MainWindowClosing);
// Save opened files
if (!DocumentManager::saveAllModifiedDocuments()) {