fixed: removing channels from a favorite list caused incorrect reordering

This commit is contained in:
Horst Beham
2020-02-11 23:25:32 +01:00
parent bd19d94686
commit 40f36c58c6
2 changed files with 6 additions and 3 deletions

View File

@@ -384,10 +384,10 @@ namespace ChanSort.Api
if (sortedFav && !this.DataRoot.AllowGapsInFavNumbers)
{
int i = 0;
foreach (var channel in favList.Channels)
foreach (var channel in favList.Channels.OrderBy(c => c.FavIndex[favIndex]))
{
if (channel.FavIndex[i] != -1)
channel.FavIndex[i] = ++i;
if (channel.FavIndex[favIndex] != -1)
channel.FavIndex[favIndex] = ++i;
}
}
}

View File

@@ -1,6 +1,9 @@
ChanSort Change Log
===================
2020-02-11B
- fixed: removing channels from a favorite list caused incorrect reordering
2020-02-11
- Philips: show and edit customized titles of favorite lists
- fixed non-unique numbers in mixed-source favorite lists when using "Add to Fav A" (Panasonic, Hisense, Sony, Philips)