summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/corelib/io/qfileinfo.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/corelib/io/qfileinfo.cpp b/src/corelib/io/qfileinfo.cpp
index ff328da..e317d1e 100644
--- a/src/corelib/io/qfileinfo.cpp
+++ b/src/corelib/io/qfileinfo.cpp
@@ -76,7 +76,9 @@ QString QFileInfoPrivate::getFileName(QAbstractFileEngine::FileName name) const
break;
case QAbstractFileEngine::AbsoluteName:
case QAbstractFileEngine::AbsolutePathName: {
- QFileSystemEntry entry = QFileSystemEngine::absoluteName(fileEntry);
+ QFileSystemEntry entry = QFileSystemEntry(
+ QDir::cleanPath(QFileSystemEngine::absoluteName(fileEntry).filePath()),
+ QFileSystemEntry::FromInternalPath());
if (cache_enabled) { // be smart and store both
fileNames[QAbstractFileEngine::AbsoluteName] = entry.filePath();
fileNames[QAbstractFileEngine::AbsolutePathName] = entry.path();