diff options
author | spiff <spiff@xbmc.org> | 2011-11-15 12:15:39 +0100 |
---|---|---|
committer | spiff <spiff@xbmc.org> | 2011-11-15 12:15:39 +0100 |
commit | 7e3f5884da079020168a68cdfebdf1118f90668a (patch) | |
tree | c0b171901cb5bed5920dbf5dd54f7841d92cbef9 | |
parent | f472d3a7fdc58c6f58b39e7ff711500af55581b8 (diff) |
fixed: had to exit weather window to get new weather locations selectable
-rw-r--r-- | xbmc/windows/GUIWindowWeather.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xbmc/windows/GUIWindowWeather.cpp b/xbmc/windows/GUIWindowWeather.cpp index 20ccfbda4f..985991181f 100644 --- a/xbmc/windows/GUIWindowWeather.cpp +++ b/xbmc/windows/GUIWindowWeather.cpp @@ -137,7 +137,6 @@ void CGUIWindowWeather::OnInitWindow() { // call UpdateButtons() so that we start with our initial stuff already present UpdateButtons(); - m_maxLocation = strtol(GetProperty("Locations").asString().c_str(),0,10); UpdateLocations(); CGUIWindow::OnInitWindow(); } @@ -145,6 +144,7 @@ void CGUIWindowWeather::OnInitWindow() void CGUIWindowWeather::UpdateLocations() { if (!IsActive()) return; + m_maxLocation = strtol(GetProperty("Locations").asString().c_str(),0,10); CGUIMessage msg(GUI_MSG_LABEL_RESET,GetID(),CONTROL_SELECTLOCATION); g_windowManager.SendMessage(msg); |