diff options
author | arnova <arnova@svn> | 2010-09-07 12:19:16 +0000 |
---|---|---|
committer | arnova <arnova@svn> | 2010-09-07 12:19:16 +0000 |
commit | eb83359b4520660a9cb996da6306d80f3e745cbc (patch) | |
tree | 3ab7b49a97f2676613044eb3480f0f74b7c15ff2 | |
parent | 6a63d5b6c5ff6d7f2f4fc06229e3a7711093b2c2 (diff) |
changed: Allow of deletion of video library item in filemode
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@33591 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
-rw-r--r-- | xbmc/GUIWindowVideoFiles.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/xbmc/GUIWindowVideoFiles.cpp b/xbmc/GUIWindowVideoFiles.cpp index dadd63eb32..b2b1c7caa1 100644 --- a/xbmc/GUIWindowVideoFiles.cpp +++ b/xbmc/GUIWindowVideoFiles.cpp @@ -453,10 +453,14 @@ void CGUIWindowVideoFiles::GetContextButtons(int itemNumber, CContextButtons &bu // single file buttons.Add(CONTEXT_BUTTON_INFO, infoString); - if (!m_database.HasMovieInfo(item->m_strPath) - && !m_database.HasEpisodeInfo(item->m_strPath) - && !item->IsLiveTV()) - buttons.Add(CONTEXT_BUTTON_ADD_TO_LIBRARY, 527); // Add to Database + if (!item->IsLiveTV()) + { + if (!m_database.HasMovieInfo(item->m_strPath) + && !m_database.HasEpisodeInfo(item->m_strPath)) + buttons.Add(CONTEXT_BUTTON_ADD_TO_LIBRARY, 527); // Add to Database + else + buttons.Add(CONTEXT_BUTTON_DELETE, 646); // Remove from Database + } } } } |