Permalink
Browse files

fixed: had to exit weather window to get new weather locations select…

…able
  • Loading branch information...
spiff
spiff committed Nov 15, 2011
1 parent f472d3a commit 7e3f5884da079020168a68cdfebdf1118f90668a
Showing with 1 addition and 1 deletion.
  1. +1 −1 xbmc/windows/GUIWindowWeather.cpp
@@ -137,14 +137,14 @@ 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();
}
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);

0 comments on commit 7e3f588

Please sign in to comment.