summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRay Vine <ray-v@inbox.lv>2018-05-29 16:53:35 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2018-05-29 16:53:35 +0900
commitfcdbd8105bbdad356a614a4a4cae57a23ae0161e (patch)
treeb703f7dd176d553d7a7d271712d1606c57fd2678
parent256b5e1830ca7af521c566829fc2af7e39894bf2 (diff)
downloadtdeaddons-fcdbd8105bbdad356a614a4a4cae57a23ae0161e.tar.gz
tdeaddons-fcdbd8105bbdad356a614a4a4cae57a23ae0161e.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>
-rw-r--r--konq-plugins/arkplugin/arkplugin.cpp6
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";
}