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