From 1dab35b01d53ce5f8dcc4cc4c79d7e8c352cc98d Mon Sep 17 00:00:00 2001 From: 0penBrain <48731257+0penBrain@users.noreply.github.com> Date: Tue, 20 Jul 2021 20:55:04 +0200 Subject: [PATCH] [Gui] Send 'mainWindowClosed' signal before window settings are saved So macros/add-ons can eventually restore things --- src/Gui/MainWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Gui/MainWindow.cpp b/src/Gui/MainWindow.cpp index 839bcb2c0b..6d35aae1da 100644 --- a/src/Gui/MainWindow.cpp +++ b/src/Gui/MainWindow.cpp @@ -1162,6 +1162,7 @@ void MainWindow::closeEvent (QCloseEvent * e) if (Workbench* wb = WorkbenchManager::instance()->active()) wb->removeTaskWatcher(); + /*emit*/ mainWindowClosed(); d->activityTimer->stop(); saveWindowSettings(); delete d->assistant; @@ -1175,7 +1176,6 @@ void MainWindow::closeEvent (QCloseEvent * e) fi.deleteFile(); } - /*emit*/ mainWindowClosed(); if (this->property("QuitOnClosed").isValid()) { QApplication::closeAllWindows(); qApp->quit(); // stop the event loop