Permalink
Browse files

Check return value of FindThemeFile() when loading an image.

  • Loading branch information...
stuartm committed May 26, 2013
1 parent c5852fa commit 0d75bebc751e3e669192379eec0a4a7fc722a76c
Showing with 4 additions and 1 deletion.
  1. +4 −1 mythtv/libs/libmythui/mythuihelper.cpp
@@ -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);

0 comments on commit 0d75beb

Please sign in to comment.