From 60b13ec51137a6ec6c621130c645918ace79f627 Mon Sep 17 00:00:00 2001 From: vdrfan Date: Sat, 20 Mar 2010 22:30:39 +0000 Subject: 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 --- xbmc/GUIWindowVideoFiles.cpp | 10 +++++----- 1 file 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 -- cgit v1.2.3