summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2020-11-02 12:41:36 (GMT)
committeralbert-github <albert.tests@gmail.com>2020-11-02 12:41:36 (GMT)
commitf01df99914ebd405bb76f117b64a12fca620dcb9 (patch)
tree3418a210b84b9ebdd969ed4f122be1f33ab7780d
parentbfe598c49fb7c99c93c84b7fcd7ea8ae8bb00739 (diff)
downloadDoxygen-f01df99914ebd405bb76f117b64a12fca620dcb9.zip
Doxygen-f01df99914ebd405bb76f117b64a12fca620dcb9.tar.gz
Doxygen-f01df99914ebd405bb76f117b64a12fca620dcb9.tar.bz2
Handling of "Cancel" during "Quit" in doxywizard
When one hasn't saved ones changes to the settings file and when selection `Quit` in the file menu one gets a message that unsaved changes will be lost and one has 3 possibilities: "Save", "Discard" and "Cancel". The "Save" and "Discard" work as expected but when selecting "Cancel" the application is also terminated (though one would expect to return to the "GUI"). When using (on Windows) the "X-button" one gets the same question with possibilities but here one returns to the "GUI" when selecting "Cancel". This patch sees to it that when selecting "Cancel" in this case one returns again to the "GUI"
-rwxr-xr-xaddon/doxywizard/doxywizard.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/addon/doxywizard/doxywizard.cpp b/addon/doxywizard/doxywizard.cpp
index e621e0b..fe8e60c 100755
--- a/addon/doxywizard/doxywizard.cpp
+++ b/addon/doxywizard/doxywizard.cpp
@@ -223,6 +223,10 @@ void MainWindow::quit()
{
saveSettings();
}
+ else
+ {
+ return;
+ }
QApplication::exit(0);
}