From bfa80c41a92526c02525e67c9557699b9d5481f9 Mon Sep 17 00:00:00 2001
From: dt <qtc-committer@nokia.com>
Date: Tue, 22 Jun 2010 15:28:42 +0200
Subject: [PATCH] Fixes file system view to be unable to cdUp to the root

Reviewed-By: Robert Loehning
---
 src/plugins/projectexplorer/foldernavigationwidget.cpp | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/plugins/projectexplorer/foldernavigationwidget.cpp b/src/plugins/projectexplorer/foldernavigationwidget.cpp
index 97b4e42d162..0c25e7adf48 100644
--- a/src/plugins/projectexplorer/foldernavigationwidget.cpp
+++ b/src/plugins/projectexplorer/foldernavigationwidget.cpp
@@ -253,8 +253,7 @@ void FolderNavigationWidget::openItem(const QModelIndex &srcIndex)
     if (fileName == QLatin1String("..")) {
         // cd up: Special behaviour: The fileInfo of ".." is that of the parent directory.
         const QString parentPath = m_fileSystemModel->fileInfo(srcIndex).absoluteFilePath();
-        if (parentPath != QDir::rootPath())
-            setCurrentDirectory(parentPath);
+        setCurrentDirectory(parentPath);
         return;
     }
     if (m_fileSystemModel->isDir(srcIndex)) { // Change to directory
-- 
GitLab