diff options
Diffstat (limited to 'src/gui/App.cpp')
-rw-r--r-- | src/gui/App.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/gui/App.cpp b/src/gui/App.cpp index 3deda1a2..730243a7 100644 --- a/src/gui/App.cpp +++ b/src/gui/App.cpp @@ -349,8 +349,11 @@ App::quit(Gtk::Window* dialog_parent) quit = (d.run() == Gtk::RESPONSE_CLOSE); } - if (quit) - Gtk::Main::quit(); + if (!quit) { + return false; + } + + Gtk::Main::quit(); try { const std::string path = _world->conf().save( @@ -361,7 +364,7 @@ App::quit(Gtk::Window* dialog_parent) % e.what()); } - return quit; + return true; } bool |