diff --git a/src/gui/miscsettings_menu.cpp b/src/gui/miscsettings_menu.cpp index f666dbeaa..eda816b27 100644 --- a/src/gui/miscsettings_menu.cpp +++ b/src/gui/miscsettings_menu.cpp @@ -759,10 +759,10 @@ int CMiscMenue::showMiscSettingsSelectWeatherLocation() m->enableSaveScreen(); res = m->exec(NULL, ""); + delete selector; + if (!m->gotAction()) return res; - - delete selector; } g_settings.weather_location = location[select].value; g_settings.weather_city = std::string(location[select].key);