Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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'

(cherry picked from commit d273cd7)
  • Loading branch information...
commit 07d3b870a06bb3e3e48f86e3664eb9bf6d32ab8a 1 parent 3574462
@stuartm stuartm authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 mythplugins/mythweather/mythweather/weatherScreen.cpp
View
4 mythplugins/mythweather/mythweather/weatherScreen.cpp
@@ -182,8 +182,8 @@ QString WeatherScreen::formatDataItem(const QString &key, const QString &value)
key.contains("high",Qt::CaseInsensitive) ||
key.contains("temp",Qt::CaseInsensitive))
{
- if ( (value == "NA") || (value == "N/A") )
- return value;
+ if ((value == "NA") || (value == "N/A"))
+ return QString();
else
return value + getTemperatureUnit();
}
Please sign in to comment.
Something went wrong with that request. Please try again.