void CGUIWindowPictures::OnShowPictureRecursive(const CStdString& strPath) { CGUIWindowSlideShow *pSlideShow = (CGUIWindowSlideShow *)g_windowManager.GetWindow(WINDOW_SLIDESHOW); if (pSlideShow) { // stop any video if (g_application.IsPlayingVideo()) g_application.StopPlaying(); pSlideShow->AddFromPath(strPath, true, m_guiState->GetSortMethod(), m_guiState->GetSortOrder()); if (pSlideShow->NumSlides()) { m_slideShowStarted = true; g_windowManager.ActivateWindow(WINDOW_SLIDESHOW); } } }
void CGUIWindowPictures::OnShowPictureRecursive(const std::string& strPath) { CGUIWindowSlideShow *pSlideShow = (CGUIWindowSlideShow *)g_windowManager.GetWindow(WINDOW_SLIDESHOW); if (pSlideShow) { // stop any video if (g_application.m_pPlayer->IsPlayingVideo()) g_application.StopPlaying(); SortDescription sorting = m_guiState->GetSortMethod(); pSlideShow->AddFromPath(strPath, true, sorting.sortBy, sorting.sortOrder, sorting.sortAttributes); if (pSlideShow->NumSlides()) { m_slideShowStarted = true; g_windowManager.ActivateWindow(WINDOW_SLIDESHOW); } } }