[pvr] fixed: remove internal parent folder handling in PVRRecordings. closes #13317
authorspiff <spiff@xbmc.org>
Sat, 8 Sep 2012 10:07:21 +0000 (12:07 +0200)
committerLars Op den Kamp <lars@opdenkamp.eu>
Tue, 30 Oct 2012 01:31:27 +0000 (02:31 +0100)
xbmc/pvr/recordings/PVRRecordings.cpp
xbmc/pvr/recordings/PVRRecordings.h

index 534a623..fefc75d 100644 (file)
@@ -36,8 +36,7 @@
 using namespace PVR;
 
 CPVRRecordings::CPVRRecordings(void) :
-    m_bIsUpdating(false),
-    m_strDirectoryHistory("pvr://recordings/")
+    m_bIsUpdating(false)
 {
     m_thumbLoader.SetNumOfWorkers(1); 
 }
@@ -260,17 +259,6 @@ void CPVRRecordings::GetSubDirectories(const CStdString &strBase, CFileItemList
     }
     results->AddFront(pItem, 0);
   }
-
-  if (!strUseBase.IsEmpty())
-  {
-    CStdString strLabel("..");
-    CFileItemPtr pItem(new CFileItem(strLabel));
-    pItem->SetPath(m_strDirectoryHistory);
-    pItem->m_bIsFolder = true;
-    pItem->m_bIsShareOrDrive = false;
-    results->AddFront(pItem, 0);
-  }
-  m_strDirectoryHistory.Format("pvr://recordings/%s", strUseBase.c_str());
 }
 
 bool CPVRRecordings::HasAllRecordingsPathExtension(const CStdString &strDirectory)
index db0a39e..3da12ac 100644 (file)
@@ -34,7 +34,6 @@ namespace PVR
   private:
     CCriticalSection             m_critSection;
     bool                         m_bIsUpdating;
-    CStdString                   m_strDirectoryHistory;
     CVideoThumbLoader            m_thumbLoader;
     std::vector<CPVRRecording *> m_recordings;