summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/editor.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/editor.c b/src/gui/editor.c
index 1a58b90..6e98423 100644
--- a/src/gui/editor.c
+++ b/src/gui/editor.c
@@ -426,12 +426,14 @@ static gboolean on_delete_editor(GtkWidget *widget, GdkEvent *event, gpointer un
{
case GTK_RESPONSE_YES:
mcb_file_save_project(NULL, NULL);
+ result = (g_study_project_get_filename(project) == NULL);
break;
case GTK_RESPONSE_NO:
break;
case GTK_RESPONSE_CANCEL:
+ default:
result = TRUE;
break;