diff --git a/src/gui/miscsettings_menu.cpp b/src/gui/miscsettings_menu.cpp index a78625f46..9e5c073b8 100644 --- a/src/gui/miscsettings_menu.cpp +++ b/src/gui/miscsettings_menu.cpp @@ -762,10 +762,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);