From 2caebb7d19dea2d7df459006f88ce4951a1a9bf0 Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch Date: Wed, 31 May 2023 14:45:46 +0200 Subject: Fix crash when right-clicking removed files --- fiv-browser.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3-70-g09d2