From 0a6b06d1d045a57b6bcf2e9ad2696cc6fd307249 Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch
Date: Wed, 5 Jan 2022 07:45:23 +0100 Subject: Fix browsing the "resource" GVfs schema --- fiv-browser.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'fiv-browser.c') diff --git a/fiv-browser.c b/fiv-browser.c index 25a6719..2f99175 100644 --- a/fiv-browser.c +++ b/fiv-browser.c @@ -383,6 +383,10 @@ entry_add_thumbnail(gpointer data, gpointer user_data) self->icon = g_object_ref(icon); g_object_unref(info); } + + // The GVfs backend may not be friendly. + if (!self->icon) + self->icon = g_icon_new_for_string("text-x-generic-symbolic", NULL); out: g_object_unref(file); } -- cgit v1.2.3-70-g09d2