aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Sommerfeld <kai.sommerfeld@gmx.com>2016-11-27 21:38:15 +0100
committerKai Sommerfeld <kai.sommerfeld@gmx.com>2016-11-27 21:42:07 +0100
commitcde0f96dafbe2fa280b933e6cfd407b5bc0f2594 (patch)
tree93988d7b3db4ae4fa5e12424965cfd6c91d66e48
parent0a7da6525d4d97162a5973baf38d500b2f3f672e (diff)
[PVR][guiinfo] Extend LISTITEM_HASTIMERSCHEDULE to support pvr timer info tag items.
-rw-r--r--xbmc/GUIInfoManager.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/xbmc/GUIInfoManager.cpp b/xbmc/GUIInfoManager.cpp
index 9e2d0f8438..99c425135c 100644
--- a/xbmc/GUIInfoManager.cpp
+++ b/xbmc/GUIInfoManager.cpp
@@ -10778,7 +10778,11 @@ bool CGUIInfoManager::GetItemBool(const CGUIListItem *item, int condition) const
}
else if (condition == LISTITEM_HASTIMERSCHEDULE)
{
- if (pItem->HasEPGInfoTag())
+ if (pItem->HasPVRTimerInfoTag())
+ {
+ return pItem->GetPVRTimerInfoTag()->GetTimerRuleId() != PVR_TIMER_NO_PARENT;
+ }
+ else if (pItem->HasEPGInfoTag())
{
CPVRTimerInfoTagPtr timer = pItem->GetEPGInfoTag()->Timer();
if (timer)