diff options
Diffstat (limited to 'core/imagedownloader.cpp')
-rw-r--r-- | core/imagedownloader.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/imagedownloader.cpp b/core/imagedownloader.cpp index 141cc79d3..0a46265d9 100644 --- a/core/imagedownloader.cpp +++ b/core/imagedownloader.cpp @@ -269,12 +269,11 @@ void Thumbnailer::imageDownloadFailed(QString filename) workingOn.remove(filename); } -QImage Thumbnailer::fetchThumbnail(PictureEntry &entry) +QImage Thumbnailer::fetchThumbnail(const QString &filename) { QMutexLocker l(&lock); // We are not currently fetching this thumbnail - add it to the list. - const QString &filename = entry.filename; if (!workingOn.contains(filename)) { workingOn.insert(filename, QtConcurrent::run(&pool, [this, filename]() { processItem(filename, true); })); |