Permalink
Browse files

pvr: Restore current recording subfolder (on UpdateData)

  • Loading branch information...
1 parent f546c95 commit c01de81adcbd123f04c175dee2f3c65abe3a510f @fetzerch fetzerch committed with Apr 17, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 xbmc/pvr/windows/GUIWindowPVRRecordings.cpp
@@ -162,10 +162,15 @@ void CGUIWindowPVRRecordings::UpdateData(bool bUpdateSelectedFile /* = true */)
CSingleLock graphicsLock(g_graphicsContext);
m_iSelected = m_parent->m_viewControl.GetSelectedItem();
+ if (m_parent->m_vecItems->GetPath().Left(17) != "pvr://recordings/")
+ m_strSelectedPath = "pvr://recordings/";
+ else
+ m_strSelectedPath = m_parent->m_vecItems->GetPath();
+
m_parent->m_viewControl.Clear();
m_parent->m_vecItems->Clear();
m_parent->m_viewControl.SetCurrentView(m_iControlList);
- m_parent->m_vecItems->SetPath("pvr://recordings/");
+ m_parent->m_vecItems->SetPath(m_strSelectedPath);
m_parent->Update(m_strSelectedPath);
m_parent->m_viewControl.SetItems(*m_parent->m_vecItems);

0 comments on commit c01de81

Please sign in to comment.