summaryrefslogtreecommitdiff
path: root/thunar
diff options
context:
space:
mode:
authorSergios - Anestis Kefalidis <sergioskefalidis@gmail.com>2021-08-02 20:55:53 +0300
committerSergios - Anestis Kefalidis <sergioskefalidis@gmail.com>2021-08-02 20:55:53 +0300
commita0f3696b6d5bddcb7ae1e54fc935280beca19755 (patch)
treea3bce78d7db35c3810bc735b7502f26ed86a6c9d /thunar
parentb852a847c258b4221da91ecedfc916f0861cab5a (diff)
downloadthunar-a0f3696b6d5bddcb7ae1e54fc935280beca19755.tar.gz
Fix thumbnail display when the maximum size is set to unlimited
Diffstat (limited to 'thunar')
-rw-r--r--thunar/thunar-icon-factory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/thunar/thunar-icon-factory.c b/thunar/thunar-icon-factory.c
index 3de10105..a566d0ce 100644
--- a/thunar/thunar-icon-factory.c
+++ b/thunar/thunar-icon-factory.c
@@ -988,7 +988,7 @@ thunar_icon_factory_load_file_icon (ThunarIconFactory *factory,
}
else
{
- if (thunar_file_get_size (file) < factory->thumbnail_max_file_size)
+ if (thunar_file_get_size (file) < factory->thumbnail_max_file_size || factory->thumbnail_max_file_size == 0) /* 0 = unlimited */
{
/* we have no preview icon but the thumbnail should be ready. determine
* the filename of the thumbnail */