Skip to content
Browse files

'none' is not a valid URL and ignoring it just masks bugs elsewhere i…

…n the code
  • Loading branch information...
1 parent fc8880e commit aaed3910ffff0a9ffe9bfacb8d82ce08cc4405d9 @stuartm stuartm committed Jul 14, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 mythtv/libs/libmythui/mythuihelper.cpp
View
4 mythtv/libs/libmythui/mythuihelper.cpp
@@ -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)) &&
@@ -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:")))

0 comments on commit aaed391

Please sign in to comment.
Something went wrong with that request. Please try again.