aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
Diffstat (limited to 'ui')
-rw-r--r--ui/gtk/summary_dlg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/gtk/summary_dlg.c b/ui/gtk/summary_dlg.c
index 473ba17df3..b01a62138e 100644
--- a/ui/gtk/summary_dlg.c
+++ b/ui/gtk/summary_dlg.c
@@ -138,7 +138,7 @@ summary_ok_cb(GtkWidget *w _U_, GtkWidget *view)
GtkTextIter end_iter;
gchar *new_comment = NULL;
- if (view != NULL) {
+ if (view != NULL && cfile.filename != NULL) {
buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (view));
gtk_text_buffer_get_start_iter (buffer, &start_iter);
gtk_text_buffer_get_end_iter (buffer, &end_iter);