Permalink
Browse files

If a grabber cannot return a value for a data field then allow the th…

…emer to hide it or chose what value to display instead of 'N/A'
  • Loading branch information...
1 parent ba12736 commit d273cd7b27a49168bad7cba7a36ce439ade3274f @stuartm stuartm committed Jul 15, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 mythplugins/mythweather/mythweather/weatherScreen.cpp
@@ -190,8 +190,8 @@ QString WeatherScreen::formatDataItem(const QString &key, const QString &value)
key.startsWith("low") ||
key.startsWith("high"))
{
- if ( (value == "NA") || (value == "N/A") )
- return value;
+ if ((value == "NA") || (value == "N/A"))
+ return QString();
else
return value + getTemperatureUnit();
}

0 comments on commit d273cd7

Please sign in to comment.