diff options
author | vdrfan <vdrfan-nospam-@xbmc.org> | 2011-12-21 00:50:16 +0100 |
---|---|---|
committer | theuni <theuni-nospam-@xbmc.org> | 2011-12-22 22:10:25 -0500 |
commit | 6ce836afc6f15b17751645c1edf554ceb76e0af6 (patch) | |
tree | f478d681ace65078db834b03908303d710ed16ff | |
parent | b9f690e819398fb5852dbb5ce59890b7d1440289 (diff) |
fixed: hide watched + watched overlay not working with sets
(cherry picked from commit bfc7d9f55008ca5ab726dfc613da599e99dcf023)
-rw-r--r-- | xbmc/video/VideoDatabase.cpp | 1 | ||||
-rw-r--r-- | xbmc/video/windows/GUIWindowVideoNav.cpp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/xbmc/video/VideoDatabase.cpp b/xbmc/video/VideoDatabase.cpp index b976e7b261..e73c89b98a 100644 --- a/xbmc/video/VideoDatabase.cpp +++ b/xbmc/video/VideoDatabase.cpp @@ -4028,6 +4028,7 @@ bool CVideoDatabase::GetSetsNav(const CStdString& strBaseDir, CFileItemList& ite // fv(3) is the number of videos watched, fv(2) is the total number. We set the playcount // only if the number of videos watched is equal to the total number (i.e. every video watched) pItem->GetVideoInfoTag()->m_playCount = (m_pDS->fv(3).get_asInt() == m_pDS->fv(2).get_asInt()) ? 1 : 0; + pItem->SetOverlayImage(CGUIListItem::ICON_OVERLAY_UNWATCHED, pItem->GetVideoInfoTag()->m_playCount > 0); pItem->GetVideoInfoTag()->m_strTitle = pItem->GetLabel(); } bool thumb=false,fanart=false; diff --git a/xbmc/video/windows/GUIWindowVideoNav.cpp b/xbmc/video/windows/GUIWindowVideoNav.cpp index 452377e1a5..a81b688840 100644 --- a/xbmc/video/windows/GUIWindowVideoNav.cpp +++ b/xbmc/video/windows/GUIWindowVideoNav.cpp @@ -836,6 +836,7 @@ void CGUIWindowVideoNav::OnPrepareFileItems(CFileItemList &items) bool filterWatched=false; if (node == NODE_TYPE_EPISODES || node == NODE_TYPE_SEASONS + || node == NODE_TYPE_SETS || node == NODE_TYPE_TITLE_MOVIES || node == NODE_TYPE_TITLE_TVSHOWS || node == NODE_TYPE_TITLE_MUSICVIDEOS |