forked from qt-creator/qt-creator
Fixes file system view to be unable to cdUp to the root
Reviewed-By: Robert Loehning
This commit is contained in:
@@ -253,7 +253,6 @@ void FolderNavigationWidget::openItem(const QModelIndex &srcIndex)
|
|||||||
if (fileName == QLatin1String("..")) {
|
if (fileName == QLatin1String("..")) {
|
||||||
// cd up: Special behaviour: The fileInfo of ".." is that of the parent directory.
|
// cd up: Special behaviour: The fileInfo of ".." is that of the parent directory.
|
||||||
const QString parentPath = m_fileSystemModel->fileInfo(srcIndex).absoluteFilePath();
|
const QString parentPath = m_fileSystemModel->fileInfo(srcIndex).absoluteFilePath();
|
||||||
if (parentPath != QDir::rootPath())
|
|
||||||
setCurrentDirectory(parentPath);
|
setCurrentDirectory(parentPath);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user