Permalink
Browse files

LoadCacheImage: Fix check of filedate causing unnecessary cache reload

This bug causes premature discarding of files from the cache and is
responsible for flicker in MythGallery while building the thumbnail
preview images for a folder containing a large (>30) number of files.

Signed-off-by: Lawrence Rust <lvr@softsystem.co.uk>
Signed-off-by: Stuart Morgan <smorgan@mythtv.org>
  • Loading branch information...
Lawrence Rust authored and stuartm committed Feb 4, 2013
1 parent 7cf508b commit 228f7d61bf56cc5858a5c733b699f5665eb39b16
Showing with 1 addition and 1 deletion.
  1. +1 −1 mythtv/libs/libmythui/mythuihelper.cpp
@@ -1536,7 +1536,7 @@ MythImage *MythUIHelper::LoadCacheImage(QString srcfile, QString label,
srcLastModified = original.lastModified();
if (!!(cacheMode & kCacheIgnoreDisk) ||
(fi.lastModified() > srcLastModified))
(fi.lastModified() >= srcLastModified))
{
// Check Memory Cache
ret = GetImageFromCache(label);

0 comments on commit 228f7d6

Please sign in to comment.