Skip to content

Commit

Permalink
Handling of "Cancel" during "Quit" in doxywizard
Browse files Browse the repository at this point in the history
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"
  • Loading branch information
albert-github committed Nov 2, 2020
1 parent bfe598c commit f01df99
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions addon/doxywizard/doxywizard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,10 @@ void MainWindow::quit()
{
saveSettings();
}
else
{
return;
}
QApplication::exit(0);
}

Expand Down

0 comments on commit f01df99

Please sign in to comment.