From 56da26d5312e7f0de04c86e3739cdb0db5c650e6 Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Tue, 25 Jan 2022 22:47:51 +0100 Subject: [PATCH] - weather-setup: clear postal code after choosing location from xml Signed-off-by: Thilo Graf --- src/gui/weather_setup.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/weather_setup.cpp b/src/gui/weather_setup.cpp index 81c1fd5d0..d4fc7cddd 100644 --- a/src/gui/weather_setup.cpp +++ b/src/gui/weather_setup.cpp @@ -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);