- weather-setup: clear postal code after choosing location from xml

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2022-01-25 22:47:51 +01:00
committed by Thilo Graf
parent 9ba0ee1b71
commit 56da26d531

View File

@@ -147,6 +147,8 @@ int CWeatherSetup::selectLocation()
delete selector;
}
g_settings.weather_postalcode.clear();
g_settings.weather_location = locations[select].coords;
g_settings.weather_city = std::string(locations[select].city);
CWeather::getInstance()->setCoords(g_settings.weather_location, g_settings.weather_city);