Fix crash when right-clicking removed files
This commit is contained in:
parent
9d9d538fe6
commit
2caebb7d19
|
@ -1131,7 +1131,9 @@ open_entry(GtkWidget *self, const Entry *entry, gboolean new_window)
|
||||||
static void
|
static void
|
||||||
show_context_menu(GtkWidget *widget, GFile *file)
|
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
|
static void
|
||||||
|
|
Loading…
Reference in New Issue