diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2019-11-16 10:15:58 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2019-11-16 10:15:58 (GMT) |
commit | c613f485dec9f480ba1acde233272b75cb7c11c9 (patch) | |
tree | a700fea628c981b5df624bd6506eefa4b02d7985 /src/gui | |
parent | 72ed953e6bf4c93057aadac5bb49d7633658273b (diff) |
Warned about unsaved projects only if needed.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/editor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/editor.c b/src/gui/editor.c index 8280e7c..42c1f77 100644 --- a/src/gui/editor.c +++ b/src/gui/editor.c @@ -344,7 +344,7 @@ static gboolean on_delete_editor(GtkWidget *widget, GdkEvent *event, gpointer da project = get_current_project(); - if (g_study_project_get_filename(project) == NULL) + if (g_study_project_get_filename(project) == NULL && g_study_project_count_contents(project) > 0) { dialog = gtk_message_dialog_new(GTK_WINDOW(widget), GTK_DIALOG_DESTROY_WITH_PARENT, |