changed: don't add parent folder items to folder set as root level of media windows
authorspiff <spiff@xbmc.org>
Tue, 11 Oct 2011 19:54:38 +0000 (21:54 +0200)
committerspiff <spiff@xbmc.org>
Tue, 11 Oct 2011 19:54:38 +0000 (21:54 +0200)
xbmc/windows/GUIMediaWindow.cpp

index 57f9a78..d0a54a0 100644 (file)
@@ -652,7 +652,7 @@ bool CGUIMediaWindow::GetDirectory(const CStdString &strDirectory, CFileItemList
       m_history.RemoveParentPath();
   }
 
-  if (m_guiState.get() && !m_guiState->HideParentDirItems() && !items.GetPath().IsEmpty())
+  if (m_guiState.get() && !m_guiState->HideParentDirItems() && items.GetPath() != m_startDirectory)
   {
     CFileItemPtr pItem(new CFileItem(".."));
     pItem->SetPath(strParentPath);