summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-12-08 01:46:14 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2021-12-08 02:43:08 +0100
commit07b5f0805f56341c73c22a61e2bf6f0373ff0ff4 (patch)
treee566b00b905740661ab801811d0adcbef4c8bcf3 /src
parentGet rid of threadpool for images (diff)
downloadnheko-07b5f0805f56341c73c22a61e2bf6f0373ff0ff4.tar.xz
Fix display of images, that can't be thumbnailed
Diffstat (limited to 'src')
-rw-r--r--src/MxcImageProvider.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/MxcImageProvider.cpp b/src/MxcImageProvider.cpp

index 35bc0586..f77f2b0a 100644 --- a/src/MxcImageProvider.cpp +++ b/src/MxcImageProvider.cpp
@@ -136,10 +136,10 @@ MxcImageProvider::download(const QString &id, opts.method = crop ? "crop" : "scale"; http::client()->get_thumbnail( opts, - [fileInfo, requestedSize, radius, then, id](const std::string &res, - mtx::http::RequestErr err) { + [fileInfo, requestedSize, radius, then, id, crop](const std::string &res, + mtx::http::RequestErr err) { if (err || res.empty()) { - then(id, QSize(), {}, ""); + download(id, QSize(), then, crop, radius); return; }