diff options
author | Sascha Montellese <sascha.montellese@gmail.com> | 2012-11-15 15:09:58 -0800 |
---|---|---|
committer | Sascha Montellese <sascha.montellese@gmail.com> | 2012-11-15 15:09:58 -0800 |
commit | 3f3a690b2b5dbc6f7baa1b59eab700b3bde684fa (patch) | |
tree | d578b6c213aa91f45bc01c46571b61e5410f8f9a | |
parent | d53f24ea4018ca309ad391a0e3dcd86e092daf3b (diff) | |
parent | f88afc1952d1f26b47344799eecbb264532a71be (diff) |
Merge pull request #1797 from Montellese/delete_xsps
videodb: allow deletion of smartplaylists
-rw-r--r-- | xbmc/video/windows/GUIWindowVideoBase.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xbmc/video/windows/GUIWindowVideoBase.cpp b/xbmc/video/windows/GUIWindowVideoBase.cpp index c52082b88b..70e7ccb5ba 100644 --- a/xbmc/video/windows/GUIWindowVideoBase.cpp +++ b/xbmc/video/windows/GUIWindowVideoBase.cpp @@ -1623,7 +1623,8 @@ void CGUIWindowVideoBase::OnDeleteItem(CFileItemPtr item) return; } - if (g_guiSettings.GetBool("filelists.allowfiledeletion") && + if ((g_guiSettings.GetBool("filelists.allowfiledeletion") || + m_vecItems->GetPath().Equals("special://videoplaylists/")) && CUtil::SupportsWriteFileOperations(item->GetPath())) CFileUtils::DeleteItem(item); } |