Skip to content

Commit

Permalink
If a grabber cannot return a value for a data field then allow the th…
Browse files Browse the repository at this point in the history
…emer to hide it or chose what value to display instead of 'N/A'
  • Loading branch information
stuartm committed Jul 15, 2012
1 parent ba12736 commit d273cd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mythplugins/mythweather/mythweather/weatherScreen.cpp
Expand Up @@ -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();
}
Expand Down

0 comments on commit d273cd7

Please sign in to comment.