summaryrefslogtreecommitdiff
path: root/src/options.c
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2010-05-30 23:59:33 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2010-05-30 23:59:33 +0200
commitcf36be979939c93315b77f24575dc4028916776d (patch)
tree54874f475e9fbd77922734e5213bc2fcfed1d9a2 /src/options.c
parent06cb979429c8b3328a8f4d93781a616a48041149 (diff)
Silently disable thumbnail caching for thumbnails >= 128x128 pixels
(This was actually meant to be included in f44207093fdd02efc3e6e03054775514787b108e)
Diffstat (limited to 'src/options.c')
-rw-r--r--src/options.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/options.c b/src/options.c
index 56bfea8..52c90d6 100644
--- a/src/options.c
+++ b/src/options.c
@@ -798,6 +798,14 @@ static void check_options(void)
opt.thumb_title = NULL;
}
+ if (opt.cache_thumbnails && ((opt.thumb_w > 128) || (opt.thumb_h > 128))) {
+ /* No warning needed, the documentation should be clear enough.
+ * Plus, we don't want to annoy users who use --cache-thumbnails by
+ * default but frequently change their thumbnail size.
+ */
+ opt.cache_thumbnails = 0;
+ }
+
D_RETURN_(4);
}