From f79f82abb7296f1cf7b828ec58e7fbd4db32b2b1 Mon Sep 17 00:00:00 2001 From: Dan Dennedy Date: Fri, 20 Dec 2024 17:32:21 -0800 Subject: [PATCH] fix thumbnail cache spoiled by Settings > Time Format --- src/models/playlistmodel.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/models/playlistmodel.cpp b/src/models/playlistmodel.cpp index 13b35592f4..31a5f2459c 100644 --- a/src/models/playlistmodel.cpp +++ b/src/models/playlistmodel.cpp @@ -99,7 +99,7 @@ class UpdateThumbnailTask : public QRunnable QString cacheKey(int frameNumber) { - QString time = m_producer.frames_to_time(frameNumber, Settings.timeFormat()); + QString time = m_producer.frames_to_time(frameNumber, mlt_time_clock); // Reduce the precision to centiseconds to increase chance for cache hit // without much loss of accuracy. time = time.left(time.size() - 1); @@ -163,9 +163,6 @@ class UpdateThumbnailTask : public QRunnable return QImage(); } } - -signals: - void thumbnailUpdated(int row); }; PlaylistModel::PlaylistModel(QObject *parent)