Skip to content

Commit

Permalink
fixed iCurrentControlId was not set if python window id wasn't specified
Browse files Browse the repository at this point in the history
fixes #11859
  • Loading branch information
pieh committed Aug 23, 2011
1 parent e391fde commit 061e1f6
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions xbmc/interfaces/python/xbmcmodule/window.cpp
Expand Up @@ -73,9 +73,6 @@ namespace PYXBMC
PyErr_SetString(PyExc_ValueError, "Window id does not exist");
return false;
}
pWindow->iOldWindowId = 0;
pWindow->bModal = false;
pWindow->iCurrentControlId = 3000;
pWindow->bIsPythonWindow = false;
}
else
Expand All @@ -92,8 +89,6 @@ namespace PYXBMC
while(id < WINDOW_PYTHON_END && g_windowManager.GetWindow(id) != NULL) id++;

pWindow->iWindowId = id;
pWindow->iOldWindowId = 0;
pWindow->bModal = false;
pWindow->bIsPythonWindow = true;

if (pWindow->bUsingXML)
Expand All @@ -115,6 +110,9 @@ namespace PYXBMC

g_windowManager.Add(pWindow->pWindow);
}
pWindow->iOldWindowId = 0;
pWindow->bModal = false;
pWindow->iCurrentControlId = 3000;
return true;
}

Expand Down

0 comments on commit 061e1f6

Please sign in to comment.