Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pvr] Fix radio channelgroup support. Take over 'radio' group property s... #6755

Merged
merged 1 commit into from Mar 21, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions xbmc/pvr/channels/PVRChannelGroup.h
Expand Up @@ -203,6 +203,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.
Expand Down
1 change: 1 addition & 0 deletions xbmc/pvr/channels/PVRChannelGroups.cpp
Expand Up @@ -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());
Expand Down