Permalink
Browse files

videolibrary: fix flattening of seasons with "Hide watched" (fixes #1…

…4852)
  • Loading branch information...
1 parent eb25c19 commit e9167cfd783bd4dbbf97e8e831dad61de7518dce @Montellese Montellese committed Jan 21, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 xbmc/video/windows/GUIWindowVideoNav.cpp
@@ -304,7 +304,7 @@ bool CGUIWindowVideoNav::GetDirectory(const CStdString &strDirectory, CFileItemL
for(int i = 0; i < items.Size(); i++)
{
const CFileItemPtr item = items.Get(i);
- if (item->GetProperty("unwatchedepisodes").asInteger() != 0 && item->GetVideoInfoTag()->m_iSeason != 0)
+ if (item->GetProperty("unwatchedepisodes").asInteger() != 0 && item->GetVideoInfoTag()->m_iSeason > 0)
count++;
}
bFlatten = (count < 2); // flatten if there is only 1 unwatched season (not counting specials)

0 comments on commit e9167cf

Please sign in to comment.