diff options
author | Kai Sommerfeld <kai.sommerfeld@gmx.com> | 2015-11-27 16:04:36 +0100 |
---|---|---|
committer | Kai Sommerfeld <kai.sommerfeld@gmx.com> | 2015-11-27 16:04:36 +0100 |
commit | 3a87b76edd1ccad1043f55581640bf2d348f6f0f (patch) | |
tree | 94d2882da0c1187ce97bbe3e8a45ef97b82d76a5 | |
parent | 1f6475cfe4f633b3bbca9b4d0ee9007eb7ec072f (diff) | |
parent | a0e68cb1a1446a643446215a1af1b6e36969e32a (diff) |
Merge pull request #8445 from metaron-uk/fix-trac16365
[PVR] Mark Created ChannnelGroups as Loaded on Persist (extra fix #16365)
-rw-r--r-- | xbmc/pvr/channels/PVRChannelGroup.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xbmc/pvr/channels/PVRChannelGroup.cpp b/xbmc/pvr/channels/PVRChannelGroup.cpp index b2f84e999d..8a2af488df 100644 --- a/xbmc/pvr/channels/PVRChannelGroup.cpp +++ b/xbmc/pvr/channels/PVRChannelGroup.cpp @@ -894,6 +894,10 @@ bool CPVRChannelGroup::Persist(void) if (!HasChanges() || (!m_bLoaded && m_iGroupId != -1)) return bReturn; + // Mark newly created groups as loaded so future updates will also be persisted... + if (m_iGroupId == -1) + m_bLoaded = true; + if (CPVRDatabase *database = GetPVRDatabase()) { CLog::Log(LOGDEBUG, "CPVRChannelGroup - %s - persisting channel group '%s' with %d channels", |