Skip to content

Commit

Permalink
fixed slideshow starting always with first picture in directory
Browse files Browse the repository at this point in the history
  • Loading branch information
pieh committed Jul 13, 2011
1 parent 0b79092 commit cd8ef14
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion xbmc/pictures/GUIWindowSlideShow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,14 @@ void CGUIWindowSlideShow::Select(const CStdString& strPicture)
const CFileItemPtr item = m_slides->Get(i);
if (item->m_strPath == strPicture)
{
m_iNextSlide = i;
m_iDirection = 1;
if (IsActive())
m_iNextSlide = i;
else
{
m_iCurrentSlide = i;
m_iNextSlide = GetNextSlide();
}
m_bLoadNextPic = true;
return ;
}
Expand Down

0 comments on commit cd8ef14

Please sign in to comment.