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, 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,