KWeather: remove clouds < 0 case.

Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
Mavridis Philippe 2 years ago
parent 767db478fd
commit 0dcd5cc1ae
Signed by: blu.256
GPG Key ID: F8D2D7E2F989A494

@ -726,7 +726,6 @@ void MetarParser::calcCurrentIcon()
if (weatherInfo.theWeather.isEmpty())
{
if (weatherInfo.clouds == 0)
weatherInfo.theWeather = iconName( WeatherIcon::Sunny, night );
else if (weatherInfo.clouds > 0 && weatherInfo.clouds <= 2)
@ -737,8 +736,6 @@ void MetarParser::calcCurrentIcon()
weatherInfo.theWeather = iconName( WeatherIcon::Cloudy, night, 3 );
else if ( weatherInfo.clouds > 8 && weatherInfo.clouds < 63)
weatherInfo.theWeather = iconName( WeatherIcon::Cloudy, night, 4 );
else if (weatherInfo.clouds < 0)
weatherInfo.theWeather = iconName( WeatherIcon::Cloudy, night, weatherInfo.clouds);
else
weatherInfo.theWeather = iconName( WeatherIcon::Cloudy, night, 5 );
}

Loading…
Cancel
Save