aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xbmc/GUIInfoManager.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/xbmc/GUIInfoManager.cpp b/xbmc/GUIInfoManager.cpp
index de3e2fec84..e56bcb8a3b 100644
--- a/xbmc/GUIInfoManager.cpp
+++ b/xbmc/GUIInfoManager.cpp
@@ -2074,7 +2074,16 @@ bool CGUIInfoManager::GetInt(int &value, int info, int contextWindow, const CGUI
return GetMultiInfoInt(value, m_multiInfo[info - MULTI_INFO_START], contextWindow);
if (info >= LISTITEM_START && info <= LISTITEM_END)
+ {
+ if (item == NULL)
+ {
+ CGUIWindow *window = GetWindowWithCondition(contextWindow, WINDOW_CONDITION_HAS_LIST_ITEMS); // true for has list items
+ if (window)
+ item = window->GetCurrentListItem().get();
+ }
+
return GetItemInt(value, item, info);
+ }
value = 0;
switch( info )