Skip to content
Browse files

fix sorting on episode count after filter watched/unwatched

  • Loading branch information...
1 parent d35c441 commit e115d235b5334b0822ebcd78ef0fb0565b814f63 Voyager-xbmc committed Aug 15, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 xbmc/video/windows/GUIWindowVideoNav.cpp
View
5 xbmc/video/windows/GUIWindowVideoNav.cpp
@@ -1619,9 +1619,12 @@ bool CGUIWindowVideoNav::ApplyWatchedFilter(CFileItemList &items)
}
if(node == NODE_TYPE_TITLE_TVSHOWS || node == NODE_TYPE_SEASONS)
+ {
// the watched filter may change the "numepisodes" property which is reflected in the TV_SHOWS and SEASONS nodes
// therefore, the items labels have to be refreshed, and possibly the list needs resorting as well.
- FormatAndSort(items);
+ items.ClearSortState(); // this is needed to force resorting even if sort method did not change
+ FormatAndSort(items);
+ }
return listchanged;
}

0 comments on commit e115d23

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