Skip to content

Commit

Permalink
'none' is not a valid URL and ignoring it just masks bugs elsewhere i…
Browse files Browse the repository at this point in the history
…n the code
  • Loading branch information
stuartm committed Jul 14, 2012
1 parent fc8880e commit aaed391
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mythtv/libs/libmythui/mythuihelper.cpp
Expand Up @@ -1298,7 +1298,7 @@ QImage *MythUIHelper::LoadScaleImage(QString filename, bool fromcache)
LOG(VB_GUI | VB_FILE, LOG_INFO, LOC +
QString("LoadScaleImage(%1)").arg(filename));

if (filename.isEmpty() || filename == "none")
if (filename.isEmpty())
return NULL;

if ((!FindThemeFile(filename)) &&
Expand Down Expand Up @@ -1398,7 +1398,7 @@ QPixmap *MythUIHelper::LoadScalePixmap(QString filename, bool fromcache)
LOG(VB_GUI | VB_FILE, LOG_INFO, LOC +
QString("LoadScalePixmap(%1)").arg(filename));

if (filename.isEmpty() || filename == "none")
if (filename.isEmpty())
return NULL;

if (!FindThemeFile(filename) && (!filename.startsWith("myth:")))
Expand Down

0 comments on commit aaed391

Please sign in to comment.