From f01df99914ebd405bb76f117b64a12fca620dcb9 Mon Sep 17 00:00:00 2001 From: albert-github Date: Mon, 2 Nov 2020 13:41:36 +0100 Subject: 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" --- addon/doxywizard/doxywizard.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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); } -- cgit v0.12