Skip to content

Commit

Permalink
LoadCacheImage: Fix check of filedate causing unnecessary cache reload
Browse files Browse the repository at this point in the history
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 Jun 15, 2013
1 parent 7cf508b commit 228f7d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mythtv/libs/libmythui/mythuihelper.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit 228f7d6

Please sign in to comment.