fixed: videos didn't work with 'start slideshow from here' context menu entry
authorspiff <spiff@xbmc.org>
Sat, 30 Apr 2011 17:43:17 +0000 (19:43 +0200)
committerspiff <spiff@xbmc.org>
Sat, 30 Apr 2011 19:21:57 +0000 (21:21 +0200)
 we need to check for videos in OnShowPicture as well

xbmc/pictures/GUIWindowPictures.cpp

index 663eaef..ab48718 100644 (file)
@@ -315,7 +315,10 @@ bool CGUIWindowPictures::ShowPicture(int iItem, bool startSlideShow)
   for (int i = 0; i < (int)m_vecItems->Size();++i)
   {
     CFileItemPtr pItem = m_vecItems->Get(i);
-    if (!pItem->m_bIsFolder && !(URIUtils::IsRAR(pItem->m_strPath) || URIUtils::IsZIP(pItem->m_strPath)) && pItem->IsPicture())
+    if (!pItem->m_bIsFolder && !(URIUtils::IsRAR(pItem->m_strPath) || 
+          URIUtils::IsZIP(pItem->m_strPath)) && (pItem->IsPicture() || (
+                                g_guiSettings.GetBool("pictures.showvideos") &&
+                                pItem->IsVideo())))
     {
       pSlideShow->Add(pItem.get());
     }