--- gigedit/trunk/src/gigedit/mainwindow.cpp 2015/01/04 19:46:54 2691 +++ gigedit/trunk/src/gigedit/mainwindow.cpp 2015/01/06 16:08:48 2694 @@ -947,6 +947,12 @@ int response = dialog.run(); dialog.hide(); + // user decided to exit app without saving + if (response == Gtk::RESPONSE_NO) return true; + + // user cancelled dialog, thus don't close app + if (response == Gtk::RESPONSE_CANCEL) return false; + // TODO: the following return valid is disabled and hard coded instead for // now, due to the fact that saving with progress bar is now implemented // asynchronously, as a result the app does not close automatically anymore