Commit fd204579 authored by Ahmad Samir's avatar Ahmad Samir
Browse files

Use applicatin/gzip mimetype

It's been standarndized since 2012, see:

frameworks/karchive!21
(cherry picked from commit 9a63765e)
parent d2b8157d
...@@ -116,7 +116,7 @@ KigDocument* KigFilterNative::load( const QString& file) ...@@ -116,7 +116,7 @@ KigDocument* KigFilterNative::load( const QString& file)
else else
KIG_FILTER_PARSE_ERROR; KIG_FILTER_PARSE_ERROR;
// reading compressed file // reading compressed file
KTar ark( file, QStringLiteral("application/x-gzip") ); KTar ark( file, QStringLiteral("application/gzip") );
ark.open( QIODevice::ReadOnly ); ark.open( QIODevice::ReadOnly );
const KArchiveDirectory* dir = ark.directory(); const KArchiveDirectory* dir = ark.directory();
// assert( dir ); // assert( dir );
...@@ -758,7 +758,7 @@ bool KigFilterNative::save07( const KigDocument& data, const QString& outfile ) ...@@ -758,7 +758,7 @@ bool KigFilterNative::save07( const KigDocument& data, const QString& outfile )
qDebug() << "tmp saved file: " << tmpfile; qDebug() << "tmp saved file: " << tmpfile;
// creating the archive and adding our file // creating the archive and adding our file
KTar ark( outfile, QStringLiteral("application/x-gzip") ); KTar ark( outfile, QStringLiteral("application/gzip") );
ark.open( QIODevice::WriteOnly ); ark.open( QIODevice::WriteOnly );
ark.addLocalFile( tmpfile, tempname + ".kig" ); ark.addLocalFile( tmpfile, tempname + ".kig" );
ark.close(); ark.close();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment