diff options
author | Roman Savochenko <roman@home.home> | 2023-11-22 13:03:43 +0200 |
---|---|---|
committer | Roman Savochenko <roman@home.home> | 2023-11-22 13:03:43 +0200 |
commit | b36287661621bbec90c5f0b929d7d3b4a3952be9 (patch) | |
tree | 87b2c091c099fc014bd1ce883fde93fed7042249 | |
parent | d31c5f6ee9c12b9fcdfc8e9f67c7d7c5b6b5f410 (diff) | |
download | krusader-b36287661621bbec90c5f0b929d7d3b4a3952be9.tar.gz krusader-b36287661621bbec90c5f0b929d7d3b4a3952be9.zip |
Krusader: Unpacking TXZ.
Signed-off-by: Roman Savochenko <roman@home.home>
-rw-r--r-- | krusader/VFS/krarchandler.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/krusader/VFS/krarchandler.cpp b/krusader/VFS/krarchandler.cpp index 0656744..ff7ab7f 100644 --- a/krusader/VFS/krarchandler.cpp +++ b/krusader/VFS/krarchandler.cpp @@ -752,6 +752,8 @@ TQString KRarcHandler::detectArchive( bool &encrypted, TQString fileName, bool c encrypted = proc.isEncrypted(); } } + else if( type == "xz" && (fileName.endsWith(".tar.xz") || fileName.endsWith(".txz")) ) + type = "txz"; return type; } } @@ -776,15 +778,6 @@ TQString KRarcHandler::detectArchive( bool &encrypted, TQString fileName, bool c } } - if (fileName.endsWith(".tar.xz")) - { - return "txz"; - } - else if (fileName.endsWith(".xz")) - { - return "xz"; - } - return TQString(); } |