summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRagnar Thomsen <rthomsen6@gmail.com>2016-11-22 18:16:26 (GMT)
committerRagnar Thomsen <rthomsen6@gmail.com>2016-11-22 18:16:26 (GMT)
commit646da9e32f79839d9f3bee11d9ad24da38ac43f0 (patch)
treedcd017630020610d0121b09607fbaf711e705544
parentaacfc786ddb0098dc6fdda4a89e6f9133a542507 (diff)
clizip: Improve detection of compression methods
Show proper names for atypical compression methods in PropertiesDialog.
-rw-r--r--plugins/clizipplugin/cliplugin.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/clizipplugin/cliplugin.cpp b/plugins/clizipplugin/cliplugin.cpp
index 09bcd7f..d8c863a 100644
--- a/plugins/clizipplugin/cliplugin.cpp
+++ b/plugins/clizipplugin/cliplugin.cpp
@@ -311,8 +311,16 @@ QString CliPlugin::convertCompressionMethod(const QString &method)
return QStringLiteral("Store");
} else if (method.startsWith(QLatin1String("def"))) {
return QStringLiteral("Deflate");
+ } else if (method == QLatin1String("d64N")) {
+ return QStringLiteral("Deflate64");
} else if (method == QLatin1String("bzp2")) {
return QStringLiteral("BZip2");
+ } else if (method == QLatin1String("lzma")) {
+ return QStringLiteral("LZMA");
+ } else if (method == QLatin1String("ppmd")) {
+ return QStringLiteral("PPMd");
+ } else if (method == QLatin1String("u095")) {
+ return QStringLiteral("XZ");
} else if (method == QLatin1String("u099")) {
emit encryptionMethodFound(QStringLiteral("AES"));
return i18nc("referred to compression method", "unknown");