diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2023-05-31 14:45:46 +0200 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2023-05-31 14:46:06 +0200 |
commit | 2caebb7d19dea2d7df459006f88ce4951a1a9bf0 (patch) | |
tree | 0c3f3959ff955baa72d71621bd2fd8208de8a071 | |
parent | 9d9d538fe6c55d6dc792a75fe7d0e2d8f7af415c (diff) | |
download | fiv-2caebb7d19dea2d7df459006f88ce4951a1a9bf0.tar.gz fiv-2caebb7d19dea2d7df459006f88ce4951a1a9bf0.tar.xz fiv-2caebb7d19dea2d7df459006f88ce4951a1a9bf0.zip |
Fix crash when right-clicking removed files
-rw-r--r-- | fiv-browser.c | 4 |
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 |