Skip to content
Browse files

Fix channel moving after f679b31

  • Loading branch information...
1 parent 09b406e commit a7559a4361c35f0eb9d0fb79c1ec6a6d582ef80c @mikrohard committed
Showing with 4 additions and 1 deletion.
  1. +4 −1 xbmc/pvr/channels/PVRChannelGroup.cpp
View
5 xbmc/pvr/channels/PVRChannelGroup.cpp
@@ -182,6 +182,9 @@ bool CPVRChannelGroup::MoveChannel(unsigned int iOldChannelNumber, unsigned int
bool bReturn(false);
CSingleLock lock(m_critSection);
+ /* make sure the list is sorted by channel number */
+ SortByChannelNumber();
+
/* old channel number out of range */
if (iOldChannelNumber > m_members.size())
return bReturn;
@@ -196,7 +199,7 @@ bool CPVRChannelGroup::MoveChannel(unsigned int iOldChannelNumber, unsigned int
m_members.insert(m_members.begin() + iNewChannelNumber - 1, entry);
/* renumber the list */
- SortAndRenumber();
+ Renumber();
m_bChanged = true;

0 comments on commit a7559a4

Please sign in to comment.
Something went wrong with that request. Please try again.