From 3eb194c394072e44b3bdeeb26c1335ff16be9ac5 Mon Sep 17 00:00:00 2001 From: HYPERION Date: Wed, 22 Aug 2018 23:32:35 +0200 Subject: [PATCH] Add support for folder.jpg (Bug #14576) --- thunar/thunar-icon-factory.c | 2 +- thunar/thunar-thumbnailer.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/thunar/thunar-icon-factory.c b/thunar/thunar-icon-factory.c index c00a286d..df240b07 100644 --- a/thunar/thunar-icon-factory.c +++ b/thunar/thunar-icon-factory.c @@ -904,7 +904,7 @@ thunar_icon_factory_load_file_icon (ThunarIconFactory *factory, /* check if thumbnails are enabled and we can display a thumbnail for the item */ if (thunar_icon_factory_get_show_thumbnail (factory, file) - && thunar_file_is_regular (file)) + && (thunar_file_is_regular (file) || thunar_file_is_directory (file)) ) { /* determine the preview icon first */ gicon = thunar_file_get_preview_icon (file); diff --git a/thunar/thunar-thumbnailer.c b/thunar/thunar-thumbnailer.c index 0fca0b92..525445fe 100644 --- a/thunar/thunar-thumbnailer.c +++ b/thunar/thunar-thumbnailer.c @@ -405,8 +405,8 @@ thunar_thumbnailer_begin_job (ThunarThumbnailer *thumbnailer, * processed (and awaiting to be refreshed) */ for (lp = job->files; lp != NULL; lp = lp->next) { - /* the icon factory only loads icons for regular files */ - if (!thunar_file_is_regular (lp->data)) + /* the icon factory only loads icons for regular files and folders */ + if (!thunar_file_is_regular (lp->data) && !thunar_file_is_directory (lp->data)) { thunar_file_set_thumb_state (lp->data, THUNAR_FILE_THUMB_STATE_NONE); continue; -- 2.11.0