diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2022-01-05 07:45:23 +0100 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2022-01-05 07:59:18 +0100 |
commit | 0a6b06d1d045a57b6bcf2e9ad2696cc6fd307249 (patch) | |
tree | 81b06d7516bf56fb2042baefd559b1e8702ccbfc | |
parent | d889acc31579fa8b1bfe484f8e49ec313c9cdcd4 (diff) | |
download | fiv-0a6b06d1d045a57b6bcf2e9ad2696cc6fd307249.tar.gz fiv-0a6b06d1d045a57b6bcf2e9ad2696cc6fd307249.tar.xz fiv-0a6b06d1d045a57b6bcf2e9ad2696cc6fd307249.zip |
Fix browsing the "resource" GVfs schema
-rw-r--r-- | fiv-browser.c | 4 |
1 files changed, 4 insertions, 0 deletions
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); } |