diff options
author | vdrfan <vdrfan@svn> | 2010-03-20 22:30:39 +0000 |
---|---|---|
committer | vdrfan <vdrfan@svn> | 2010-03-20 22:30:39 +0000 |
commit | 60b13ec51137a6ec6c621130c645918ace79f627 (patch) | |
tree | 7d6d14d1c7447a077b16b19f7b6e570eb7a02dfd | |
parent | 017c5e60c6ab5df5fa3d57eaeb7657cb529e26a2 (diff) |
changed: only allow mark as watched/unwatched on already scanned media files (Fixes #8984)
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@28704 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
-rw-r--r-- | xbmc/GUIWindowVideoFiles.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/xbmc/GUIWindowVideoFiles.cpp b/xbmc/GUIWindowVideoFiles.cpp index bdd121615d..e100411237 100644 --- a/xbmc/GUIWindowVideoFiles.cpp +++ b/xbmc/GUIWindowVideoFiles.cpp @@ -542,6 +542,11 @@ void CGUIWindowVideoFiles::GetContextButtons(int itemNumber, CContextButtons &bu || (info && info->Content() == CONTENT_MUSICVIDEOS) ) { buttons.Add(CONTEXT_BUTTON_INFO, infoString); + + if (item->GetOverlayImage().Equals("OverlayWatched.png")) + buttons.Add(CONTEXT_BUTTON_MARK_UNWATCHED, 16104); //Mark as UnWatched + else + buttons.Add(CONTEXT_BUTTON_MARK_WATCHED, 16103); //Mark as Watched } if (!m_database.HasMovieInfo(item->m_strPath) && !m_database.HasEpisodeInfo(item->m_strPath) @@ -564,11 +569,6 @@ void CGUIWindowVideoFiles::GetContextButtons(int itemNumber, CContextButtons &bu } if (m_vecItems->IsPlugin() && item->HasVideoInfoTag() && !item->GetPropertyBOOL("pluginreplacecontextitems")) buttons.Add(CONTEXT_BUTTON_INFO,13346); // only movie information for now - - if (item->GetOverlayImage().Equals("OverlayWatched.png")) - buttons.Add(CONTEXT_BUTTON_MARK_UNWATCHED, 16104); //Mark as UnWatched - else - buttons.Add(CONTEXT_BUTTON_MARK_WATCHED, 16103); //Mark as Watched } } else |