summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/corelib/io/qzip.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/corelib/io/qzip.cpp b/src/corelib/io/qzip.cpp
index 173563ec29a..1e3d5f5859e 100644
--- a/src/corelib/io/qzip.cpp
+++ b/src/corelib/io/qzip.cpp
@@ -1009,6 +1009,8 @@ bool QZipReader::extractAll(const QString &destinationDir) const
// need to recreate directory structure based on the file paths.
if (hasDirs && !foundDirs) {
for (const FileInfo &fi : allFiles) {
+ if (!fi.filePath.contains(u"/"))
+ continue;
const auto dirPath = fi.filePath.left(fi.filePath.lastIndexOf(u"/"));
if (!baseDir.mkpath(dirPath))
return false;