From 93e2a757d439b4965bf21b26a41628be9b2ec788 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bert=20M=C3=BCnnich?= Date: Fri, 24 Oct 2014 11:14:01 +0200 Subject: Do not print could-not-open-warnings for files found by directory traversal --- thumbs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'thumbs.c') diff --git a/thumbs.c b/thumbs.c index 8bdf6c6..5328d3a 100644 --- a/thumbs.c +++ b/thumbs.c @@ -323,7 +323,8 @@ bool tns_load(tns_t *tns, int n, bool force) if (im == NULL && (access(file->path, R_OK) < 0 || (im = imlib_load_image(file->path)) == NULL)) { - warn("could not open image: %s", file->name); + if (file->warn) + warn("could not open image: %s", file->name); return false; } } -- cgit v1.2.3