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>
pull/1/head
Ray Vine 7 years ago committed by Michele Calgaro
parent 256b5e1830
commit fcdbd8105b

@ -93,7 +93,7 @@ ArkMenu::ArkMenu( KonqPopupMenu * popupmenu, const char *name, const TQStringLis
{ {
compMimeTypes(); compMimeTypes();
actionMenu = new TDEActionMenu( i18n( "Compress" ), "ark", actionCollection(), "ark_compress_menu" ); 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 ) if ( itemCount == 1 )
{ {
item = itemList.first(); item = itemList.first();
@ -104,7 +104,7 @@ ArkMenu::ArkMenu( KonqPopupMenu * popupmenu, const char *name, const TQStringLis
else else
{ {
action = new TDEAction( KMimeType::mimeType( m_conf->readEntry( action = new TDEAction( KMimeType::mimeType( m_conf->readEntry(
"LastMimeType", "application/x-tgz" ) )->comment(), "LastMimeType", "application/x-txz" ) )->comment(),
0, this, TQT_SLOT( slotCompressAsDefault() ), actionCollection() ); 0, this, TQT_SLOT( slotCompressAsDefault() ), actionCollection() );
} }
actionMenu->insert( action ); actionMenu->insert( action );
@ -320,7 +320,7 @@ void ArkMenu::compMimeTypes()
{ {
m_archiveMimeTypes << "application/x-zip"; m_archiveMimeTypes << "application/x-zip";
if ( m_conf->readBoolEntry( "UseJar", false ) ) if ( m_conf->readBoolEntry( "UseJar", true ) )
m_archiveMimeTypes << "application/x-jar"; m_archiveMimeTypes << "application/x-jar";
} }

Loading…
Cancel
Save