fixed: disable slideshow/recursive slideshow buttons in addons listing
authorspiff <spiff@xbmc.org>
Sun, 31 Mar 2013 12:43:24 +0000 (14:43 +0200)
committerspiff <spiff@xbmc.org>
Sun, 31 Mar 2013 12:44:17 +0000 (14:44 +0200)
closes #10513

xbmc/pictures/GUIWindowPictures.cpp

index d5e32f1..c242b86 100644 (file)
@@ -188,7 +188,8 @@ void CGUIWindowPictures::UpdateButtons()
 
   // check we can slideshow or recursive slideshow
   int nFolders = m_vecItems->GetFolderCount();
-  if (nFolders == m_vecItems->Size())
+  if (nFolders == m_vecItems->Size() ||
+      m_vecItems->GetPath() == "addons://sources/image/")
   {
     CONTROL_DISABLE(CONTROL_BTNSLIDESHOW);
   }
@@ -198,7 +199,8 @@ void CGUIWindowPictures::UpdateButtons()
   }
   if (m_guiState.get() && !m_guiState->HideParentDirItems())
     nFolders--;
-  if (m_vecItems->Size() == 0 || nFolders == 0)
+  if (m_vecItems->Size() == 0 || nFolders == 0 ||
+      m_vecItems->GetPath() == "addons://sources/image/")
   {
     CONTROL_DISABLE(CONTROL_BTNSLIDESHOW_RECURSIVE);
   }