Fix crash when right-clicking removed files

This commit is contained in:
Přemysl Eric Janouch 2023-05-31 14:45:46 +02:00
parent 9d9d538fe6
commit 2caebb7d19
Signed by: p
GPG Key ID: A0420B94F92B9493

View File

@ -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