summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRagnar Thomsen <[email protected]>2016-07-16 20:19:07 +0200
committerRagnar Thomsen <[email protected]>2016-07-16 20:19:07 +0200
commit7472e1582b3e29cc31f541b86b7abbd5a1370de1 (patch)
treeac9126aabefb6a4dd01a24a92f58a78e128ae08d
parent0f4ae19b09680f94e328dd71449604187da7de5b (diff)
cli7z: Fix detection of number of archive volumes
-rw-r--r--plugins/cli7zplugin/cliplugin.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/cli7zplugin/cliplugin.cpp b/plugins/cli7zplugin/cliplugin.cpp
index b154235..5be07d5 100644
--- a/plugins/cli7zplugin/cliplugin.cpp
+++ b/plugins/cli7zplugin/cliplugin.cpp
@@ -166,7 +166,8 @@ bool CliPlugin::readListLine(const QString& line)
qCWarning(ARK) << "Unsupported archive type";
return false;
}
-
+ } else if (line.startsWith(QStringLiteral("Volumes = "))) {
+ m_numberOfVolumes = line.section(QLatin1Char('='), 1).trimmed().toInt();
} else if (rxComment.match(line).hasMatch()) {
m_parseState = ParseStateComment;
m_comment.append(line.section(QLatin1Char('='), 1) + QLatin1Char('\n'));