summaryrefslogtreecommitdiff
path: root/src/gui/editor.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2019-11-16 10:15:58 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2019-11-16 10:15:58 (GMT)
commitc613f485dec9f480ba1acde233272b75cb7c11c9 (patch)
treea700fea628c981b5df624bd6506eefa4b02d7985 /src/gui/editor.c
parent72ed953e6bf4c93057aadac5bb49d7633658273b (diff)
Warned about unsaved projects only if needed.
Diffstat (limited to 'src/gui/editor.c')
-rw-r--r--src/gui/editor.c2
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,