Skip to content

Commit

Permalink
Check return value of FindThemeFile() when loading an image.
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartm committed May 26, 2013
1 parent c5852fa commit 0d75beb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mythtv/libs/libmythui/mythuihelper.cpp
Expand Up @@ -1517,7 +1517,10 @@ MythImage *MythUIHelper::LoadCacheImage(QString srcfile, QString label,
{
// Now compare the time on the source versus our cached copy
if (!(cacheMode & kCacheIgnoreDisk))
FindThemeFile(srcfile);
{
if (!FindThemeFile(srcfile))
return NULL;
}

QDateTime srcLastModified;
QFileInfo original(srcfile);
Expand Down

0 comments on commit 0d75beb

Please sign in to comment.