summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qdir.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/io/qdir.cpp')
-rw-r--r--src/corelib/io/qdir.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/corelib/io/qdir.cpp b/src/corelib/io/qdir.cpp
index e9bc012..22a3baa 100644
--- a/src/corelib/io/qdir.cpp
+++ b/src/corelib/io/qdir.cpp
@@ -177,7 +177,7 @@ inline void QDirPrivate::setPath(const QString &path)
p.truncate(p.length() - 1);
}
- dirEntry = QFileSystemEntry(p);
+ dirEntry = QFileSystemEntry(p, QFileSystemEntry::FromInternalPath());
metaData.clear();
initFileEngine();
clearFileLists();
@@ -198,7 +198,7 @@ inline void QDirPrivate::resolveAbsoluteEntry() const
if (dirEntry.isRelative()) {
QFileSystemEntry answer = QFileSystemEngine::absoluteName(dirEntry);
- absoluteDirEntry = QFileSystemEntry(QDir::cleanPath(answer.filePath()));
+ absoluteDirEntry = QFileSystemEntry(QDir::cleanPath(answer.filePath()), QFileSystemEntry::FromInternalPath());
} else {
absoluteDirEntry = dirEntry;
}
@@ -1757,7 +1757,7 @@ QChar QDir::separator()
*/
bool QDir::setCurrent(const QString &path)
{
- return QFileSystemEngine::setCurrentPath(QFileSystemEntry(fromNativeSeparators(path)));
+ return QFileSystemEngine::setCurrentPath(QFileSystemEntry(path));
}
/*!