summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2020-11-17 07:36:46 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2020-11-17 07:36:46 (GMT)
commitb8c3217d1e0b881c8a82c157324ba9cd821497fd (patch)
treee21787e6e2433e993bbb2aff4659b739dfcfdc4b /src
parentbaef7fad5e4a7f19926c8722e8ab1e1d426d4433 (diff)
Fixed exit cancellation when the project is not saved.
Diffstat (limited to 'src')
-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;