diff --git a/src/plugins/projectexplorer/foldernavigationwidget.cpp b/src/plugins/projectexplorer/foldernavigationwidget.cpp index 97b4e42d16243108ca4e2c20be988ab763886269..0c25e7adf48876f0e942c6e5ec3ec39243e92af8 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