diff options
Diffstat (limited to 'src/fs/gnunet-fs-gtk-event_handler.c')
-rw-r--r-- | src/fs/gnunet-fs-gtk-event_handler.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/fs/gnunet-fs-gtk-event_handler.c b/src/fs/gnunet-fs-gtk-event_handler.c index 33b9f147..23129eb6 100644 --- a/src/fs/gnunet-fs-gtk-event_handler.c +++ b/src/fs/gnunet-fs-gtk-event_handler.c | |||
@@ -782,7 +782,12 @@ search_list_on_menu (GtkWidget * widget, GdkEvent * event, gpointer user_data) | |||
782 | return FALSE; | 782 | return FALSE; |
783 | } | 783 | } |
784 | tm = gtk_tree_view_get_model (tv); | 784 | tm = gtk_tree_view_get_model (tv); |
785 | gtk_tree_model_get_iter (tm, &iter, path); | 785 | if (TRUE != gtk_tree_model_get_iter (tm, &iter, path)) |
786 | { | ||
787 | /* model empty? */ | ||
788 | current_context_search_tab = NULL; | ||
789 | return FALSE; | ||
790 | } | ||
786 | gtk_tree_model_get (tm, &iter, 9, &sr, -1); | 791 | gtk_tree_model_get (tm, &iter, 9, &sr, -1); |
787 | current_context_row_reference = gtk_tree_row_reference_new (tm, path); | 792 | current_context_row_reference = gtk_tree_row_reference_new (tm, path); |
788 | gtk_tree_path_free (path); | 793 | gtk_tree_path_free (path); |