diff options
author | Bert Münnich <ber.t@posteo.de> | 2014-10-24 11:14:01 +0200 |
---|---|---|
committer | Bert Münnich <ber.t@posteo.de> | 2014-10-24 11:14:01 +0200 |
commit | 93e2a757d439b4965bf21b26a41628be9b2ec788 (patch) | |
tree | a781005cb53c6462f380f453c6affd70f46e0dc7 /thumbs.c | |
parent | e15dabde747c71dfcf49e4818099c4cc526c2d21 (diff) | |
download | nsxiv-93e2a757d439b4965bf21b26a41628be9b2ec788.tar.zst |
Do not print could-not-open-warnings for files found by directory traversal
Diffstat (limited to 'thumbs.c')
-rw-r--r-- | thumbs.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; } } |