summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRagnar Thomsen <rthomsen6@gmail.com>2016-10-09 17:27:11 (GMT)
committerRagnar Thomsen <rthomsen6@gmail.com>2016-10-09 17:27:11 (GMT)
commit5f79138bc86da22d8d3e96ffb511b80814ef5c0e (patch)
tree8118e761138035d36a60963bf47c58b586f69b7e
parent50a9f590bd2d0a32ac3fe3e4d129637864c977de (diff)
clirar: Emit compressionMethodFound signal for unrar 3/4
We should also detect compression method when using the older unrar versions.
-rw-r--r--plugins/clirarplugin/cliplugin.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/clirarplugin/cliplugin.cpp b/plugins/clirarplugin/cliplugin.cpp
index 6e08d20..ac13a43 100644
--- a/plugins/clirarplugin/cliplugin.cpp
+++ b/plugins/clirarplugin/cliplugin.cpp
@@ -328,6 +328,10 @@ bool CliPlugin::handleUnrar4Line(const QString &line)
return false;
}
+ // If we reach this point, then we can be sure that it's not a RAR5
+ // archive, so assume RAR4.
+ emit compressionMethodFound(QStringList{QStringLiteral("RAR4")});
+
if (rxCommentEnd.match(line).hasMatch()) {
if (line.startsWith(QLatin1String("Volume "))) {