diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/imagedownloader.cpp | 3 | ||||
-rw-r--r-- | core/imagedownloader.h | 4 |
2 files changed, 3 insertions, 4 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); })); diff --git a/core/imagedownloader.h b/core/imagedownloader.h index d5cb889fe..e0db016ed 100644 --- a/core/imagedownloader.h +++ b/core/imagedownloader.h @@ -31,9 +31,9 @@ public: static Thumbnailer *instance(); // Schedule a thumbnail for fetching or calculation. - // Returns a placehlder thumbnail. The actual thumbnail will be sent + // Returns a placeholder thumbnail. The actual thumbnail will be sent // via a signal later. - QImage fetchThumbnail(PictureEntry &entry); + QImage fetchThumbnail(const QString &filename); // Schedule multiple thumbnails for forced recalculation void calculateThumbnails(const QVector<QString> &filenames); |