diff options
author | Sam Stenvall <Jalle19@users.noreply.github.com> | 2015-04-30 13:55:15 +0300 |
---|---|---|
committer | Sam Stenvall <Jalle19@users.noreply.github.com> | 2015-04-30 13:55:15 +0300 |
commit | 2a092e88f1ea43b1a4c3d599b61aa6288436472e (patch) | |
tree | 31a04b1927070ee06d20d9cddb7ddf16da4fc155 | |
parent | 2ec8ffca49dcb3239841298b5f60c7496a598d4b (diff) | |
parent | 348ffe8be1696c5ed0bc78a7fc9d2ec58304d5ad (diff) |
Merge pull request #6246 from Jalle19/improve-pvr-startup
[pvr] Improve PVR startup time
-rw-r--r-- | xbmc/pvr/channels/PVRChannelGroups.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/xbmc/pvr/channels/PVRChannelGroups.cpp b/xbmc/pvr/channels/PVRChannelGroups.cpp index a6e772346d..b7e6f8f401 100644 --- a/xbmc/pvr/channels/PVRChannelGroups.cpp +++ b/xbmc/pvr/channels/PVRChannelGroups.cpp @@ -77,8 +77,9 @@ bool CPVRChannelGroups::Update(const CPVRChannelGroup &group, bool bUpdateFromCl if (!updateGroup) { - // create a new group if none was found - updateGroup = CPVRChannelGroupPtr(new CPVRChannelGroup()); + // create a new group if none was found. Copy the properties immediately + // so the group doesn't get flagged as "changed" further down. + updateGroup = CPVRChannelGroupPtr(new CPVRChannelGroup(group.IsRadio(), group.GroupID(), group.GroupName())); m_groups.push_back(updateGroup); } |