Skip to content

Commit

Permalink
videolibrary: fix flattening of seasons with "Hide watched" (fixes #1…
Browse files Browse the repository at this point in the history
  • Loading branch information
Montellese committed Jan 21, 2014
1 parent eb25c19 commit e9167cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xbmc/video/windows/GUIWindowVideoNav.cpp
Expand Up @@ -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)
Expand Down

0 comments on commit e9167cf

Please sign in to comment.