diff options
author | Ray Vine <ray-v@inbox.lv> | 2018-05-29 16:53:35 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2018-05-29 22:10:08 +0900 |
commit | 9581ce3336cb05651b0db25cbe08d121dc2c7b7b (patch) | |
tree | a1eecbeac5cd2b51d7371c8b929d13d4ded604b7 /konq-plugins/arkplugin | |
parent | e7a5dff2d9b9e42b79ba2d9bace232183da905f6 (diff) | |
download | tdeaddons-9581ce3336cb05651b0db25cbe08d121dc2c7b7b.tar.gz tdeaddons-9581ce3336cb05651b0db25cbe08d121dc2c7b7b.zip |
Konqueror Ark plugin: change default compression format from gz to xz.
Enable jar format in "compress as" sub menu.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit fcdbd8105bbdad356a614a4a4cae57a23ae0161e)
Diffstat (limited to 'konq-plugins/arkplugin')
-rw-r--r-- | konq-plugins/arkplugin/arkplugin.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/konq-plugins/arkplugin/arkplugin.cpp b/konq-plugins/arkplugin/arkplugin.cpp index 270ab36..ed81025 100644 --- a/konq-plugins/arkplugin/arkplugin.cpp +++ b/konq-plugins/arkplugin/arkplugin.cpp @@ -93,7 +93,7 @@ ArkMenu::ArkMenu( KonqPopupMenu * popupmenu, const char *name, const TQStringLis { compMimeTypes(); actionMenu = new TDEActionMenu( i18n( "Compress" ), "ark", actionCollection(), "ark_compress_menu" ); - m_ext = m_conf->readEntry( "LastExtension", ".tar.gz" ); + m_ext = m_conf->readEntry( "LastExtension", ".tar.xz" ); if ( itemCount == 1 ) { item = itemList.first(); @@ -104,7 +104,7 @@ ArkMenu::ArkMenu( KonqPopupMenu * popupmenu, const char *name, const TQStringLis else { action = new TDEAction( KMimeType::mimeType( m_conf->readEntry( - "LastMimeType", "application/x-tgz" ) )->comment(), + "LastMimeType", "application/x-txz" ) )->comment(), 0, this, TQT_SLOT( slotCompressAsDefault() ), actionCollection() ); } actionMenu->insert( action ); @@ -320,7 +320,7 @@ void ArkMenu::compMimeTypes() { m_archiveMimeTypes << "application/x-zip"; - if ( m_conf->readBoolEntry( "UseJar", false ) ) + if ( m_conf->readBoolEntry( "UseJar", true ) ) m_archiveMimeTypes << "application/x-jar"; } |