aboutsummaryrefslogtreecommitdiffstats
path: root/thumbs.c
diff options
context:
space:
mode:
authorBert Münnich <ber.t@posteo.de>2014-08-16 21:31:05 +0200
committerBert Münnich <ber.t@posteo.de>2014-08-16 21:49:46 +0200
commite267dc7793df0c3d8b1dcc48575a11d402df5499 (patch)
treecbd24fe32acedcb3951e1d8f337a950d38da28ae /thumbs.c
parent284be749278a7b6471926a618877dbb3adc8c1ad (diff)
downloadnsxiv-e267dc7793df0c3d8b1dcc48575a11d402df5499.tar.zst
Pass marked files to external key handler in thumbnail mode; fixes issue #135
Diffstat (limited to 'thumbs.c')
-rw-r--r--thumbs.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/thumbs.c b/thumbs.c
index 369dfca..14ecf74 100644
--- a/thumbs.c
+++ b/thumbs.c
@@ -209,8 +209,7 @@ void tns_free(tns_t *tns)
}
}
-bool tns_load(tns_t *tns, int n, const fileinfo_t *file,
- bool force, bool silent)
+bool tns_load(tns_t *tns, int n, const fileinfo_t *file, bool force)
{
int w, h;
bool cache_hit = false;
@@ -295,8 +294,7 @@ bool tns_load(tns_t *tns, int n, const fileinfo_t *file,
if (im == NULL && (access(file->path, R_OK) < 0 ||
(im = imlib_load_image(file->path)) == NULL))
{
- if (!silent)
- warn("could not open image: %s", file->name);
+ warn("could not open image: %s", file->name);
return false;
}
}