diff options
author | Kai Sommerfeld <kai.sommerfeld@gmx.com> | 2015-03-18 11:42:15 +0100 |
---|---|---|
committer | Kai Sommerfeld <kai.sommerfeld@gmx.com> | 2015-03-18 11:42:15 +0100 |
commit | 359393fdf8b9cd7dd5aab7c709dd3471cc1cc6d8 (patch) | |
tree | e18b76e832bb7a917b0b74b42e216c7f073e4d83 | |
parent | c20f67df35c92e041868dafc378e021839798e63 (diff) |
[pvr] Fix radio channelgroup support. Take over 'radio' group property supplied by client.
-rw-r--r-- | xbmc/pvr/channels/PVRChannelGroup.h | 6 | ||||
-rw-r--r-- | xbmc/pvr/channels/PVRChannelGroups.cpp | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/xbmc/pvr/channels/PVRChannelGroup.h b/xbmc/pvr/channels/PVRChannelGroup.h index 3a08c8bcbe..8ff215243e 100644 --- a/xbmc/pvr/channels/PVRChannelGroup.h +++ b/xbmc/pvr/channels/PVRChannelGroup.h @@ -204,6 +204,12 @@ namespace PVR bool IsRadio(void) const { return m_bRadio; } /*! + * @brief Set 'radio' property of this group. + * @param bIsRadio The new value for the 'radio' property. + */ + void SetRadio(bool bIsRadio) { m_bRadio = bIsRadio; } + + /*! * @brief True if sorting should be prevented when adding/updating channels to the group. * @return True if sorting should be prevented when adding/updating channels to the group. */ diff --git a/xbmc/pvr/channels/PVRChannelGroups.cpp b/xbmc/pvr/channels/PVRChannelGroups.cpp index d6dfeaaee3..a6e772346d 100644 --- a/xbmc/pvr/channels/PVRChannelGroups.cpp +++ b/xbmc/pvr/channels/PVRChannelGroups.cpp @@ -82,6 +82,7 @@ bool CPVRChannelGroups::Update(const CPVRChannelGroup &group, bool bUpdateFromCl m_groups.push_back(updateGroup); } + updateGroup->SetRadio(group.IsRadio()); updateGroup->SetGroupID(group.GroupID()); updateGroup->SetGroupName(group.GroupName()); updateGroup->SetGroupType(group.GroupType()); |