summaryrefslogtreecommitdiffstats
path: root/gtk-gui.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk-gui.c')
-rw-r--r--gtk-gui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk-gui.c b/gtk-gui.c
index 53979034b..6125db3f5 100644
--- a/gtk-gui.c
+++ b/gtk-gui.c
@@ -238,7 +238,7 @@ static gboolean ask_save_changes()
gint outcode = gtk_dialog_run(GTK_DIALOG(dialog));
if (outcode == GTK_RESPONSE_ACCEPT) {
file_save(NULL,NULL);
- } else if (outcode == GTK_RESPONSE_CANCEL) {
+ } else if (outcode == GTK_RESPONSE_CANCEL || outcode == GTK_RESPONSE_DELETE_EVENT) {
quit = FALSE;
}
gtk_widget_destroy(dialog);