diff options
author | Shane Kearns <shane.kearns@accenture.com> | 2011-01-12 15:21:45 (GMT) |
---|---|---|
committer | Shane Kearns <shane.kearns@accenture.com> | 2011-01-12 15:21:45 (GMT) |
commit | 5096e91a68f86d034289b1ec47a6c559c31580cb (patch) | |
tree | 025f8643e56a5bf0fe00167638e36d7abca5aa4a /src/corelib/io | |
parent | 84b5bbc77045cdc267626ff86f309664283abed4 (diff) | |
download | Qt-5096e91a68f86d034289b1ec47a6c559c31580cb.zip Qt-5096e91a68f86d034289b1ec47a6c559c31580cb.tar.gz Qt-5096e91a68f86d034289b1ec47a6c559c31580cb.tar.bz2 |
Fix for using search paths with a dirty path
Opening "searchpath:/file" and other non clean paths was failing
Reviewed-by: joao
Diffstat (limited to 'src/corelib/io')
-rw-r--r-- | src/corelib/io/qfilesystemengine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/io/qfilesystemengine.cpp b/src/corelib/io/qfilesystemengine.cpp index d9d802e..799c109 100644 --- a/src/corelib/io/qfilesystemengine.cpp +++ b/src/corelib/io/qfilesystemengine.cpp @@ -168,7 +168,7 @@ static bool _q_resolveEntryAndCreateLegacyEngine_recursive(QFileSystemEntry &ent const QStringList &paths = QDir::searchPaths(filePath.left(prefixSeparator)); for (int i = 0; i < paths.count(); i++) { - entry = QFileSystemEntry(paths.at(i) % QLatin1Char('/') % filePath.mid(prefixSeparator + 1)); + entry = QFileSystemEntry(QDir::cleanPath(paths.at(i) % QLatin1Char('/') % filePath.mid(prefixSeparator + 1))); // Recurse! if (_q_resolveEntryAndCreateLegacyEngine_recursive(entry, data, engine, true)) return true; |