void CPVRChannelGroups::SetSelectedGroup(CPVRChannelGroupPtr group) { // update the selected group { CSingleLock lock(m_critSection); m_selectedGroup = group; } // update the channel number cache group->Renumber(); }
void CPVRChannelGroups::SetSelectedGroup(const CPVRChannelGroupPtr &group) { // update the selected group { CSingleLock lock(m_critSection); if (m_selectedGroup) m_selectedGroup->SetSelectedGroup(false); m_selectedGroup = group; group->SetSelectedGroup(true); } // update the channel number cache group->Renumber(); }