Fixes file system view to be unable to cdUp to the root

Reviewed-By: Robert Loehning
This commit is contained in:
dt
2010-06-22 15:28:42 +02:00
parent d3ba80bfad
commit bfa80c41a9

View File

@@ -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;
} }