aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Stenvall <Jalle19@users.noreply.github.com>2015-04-30 13:55:15 +0300
committerSam Stenvall <Jalle19@users.noreply.github.com>2015-04-30 13:55:15 +0300
commit2a092e88f1ea43b1a4c3d599b61aa6288436472e (patch)
tree31a04b1927070ee06d20d9cddb7ddf16da4fc155
parent2ec8ffca49dcb3239841298b5f60c7496a598d4b (diff)
parent348ffe8be1696c5ed0bc78a7fc9d2ec58304d5ad (diff)
Merge pull request #6246 from Jalle19/improve-pvr-startup
[pvr] Improve PVR startup time
-rw-r--r--xbmc/pvr/channels/PVRChannelGroups.cpp5
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);
}