fixed: unable to delete video library items listed using a smart playlist
authorspiff <spiff@xbmc.org>
Mon, 3 Oct 2011 22:32:52 +0000 (00:32 +0200)
committerspiff <spiff@xbmc.org>
Mon, 3 Oct 2011 22:32:52 +0000 (00:32 +0200)
fixes #12032

xbmc/video/windows/GUIWindowVideoNav.cpp

index 7f0fa32..724ac20 100644 (file)
@@ -662,7 +662,7 @@ void CGUIWindowVideoNav::OnDeleteItem(CFileItemPtr pItem)
   if (m_vecItems->IsParentFolder())
     return;
 
-  if (!m_vecItems->IsVideoDb())
+  if (!m_vecItems->IsVideoDb() && !pItem->IsVideoDb())
   {
     if (!pItem->GetPath().Equals("newsmartplaylist://video") &&
         !pItem->GetPath().Equals("special://videoplaylists/") &&