aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fiv-browser.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fiv-browser.c b/fiv-browser.c
index 0c14c9b..01ff8f0 100644
--- a/fiv-browser.c
+++ b/fiv-browser.c
@@ -1131,7 +1131,9 @@ open_entry(GtkWidget *self, const Entry *entry, gboolean new_window)
static void
show_context_menu(GtkWidget *widget, GFile *file)
{
- gtk_menu_popup_at_pointer(fiv_context_menu_new(widget, file), NULL);
+ GtkMenu *menu = fiv_context_menu_new(widget, file);
+ if (menu)
+ gtk_menu_popup_at_pointer(menu, NULL);
}
static void