Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 938ed4ac authored by Pino Toscano's avatar Pino Toscano

claim support of the new application/vnd.kde.okular-archive mimetype, and...

claim support of the new application/vnd.kde.okular-archive mimetype, and check it where appropriate

svn path=/trunk/KDE/kdegraphics/okular/; revision=884851
parent 97263dcd
......@@ -3050,6 +3050,8 @@ QStringList Document::supportedMimeTypes() const
d->m_supportedMimeTypes.append( mimeType );
}
d->m_supportedMimeTypes.append( "application/vnd.kde.okular-archive" );
return d->m_supportedMimeTypes;
}
......@@ -3146,7 +3148,7 @@ QByteArray Document::fontData(const FontInfo &font) const
bool Document::openDocumentArchive( const QString & docFile, const KUrl & url )
{
const KMimeType::Ptr mime = KMimeType::findByPath( docFile, 0, false /* content too */ );
if ( !mime->is( "application/zip" ) ) // ### use correct mimetype
if ( !mime->is( "application/vnd.kde.okular-archive" ) )
return false;
KZip okularArchive( docFile );
......
......@@ -220,6 +220,8 @@ QStringList Shell::fileFormats() const
supportedPatterns.append( mimeType );
}
supportedPatterns.append( "application/vnd.kde.okular-archive" );
return supportedPatterns;
}
......
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