mirror of
https://invent.kde.org/graphics/okular
synced 2024-08-27 11:40:07 +00:00
Fine tune opening of archives after last change
Since openDocument will do MatchContent if the mime passed fails, we need to do matchExtension here
This commit is contained in:
parent
caf52d0ed9
commit
ee5b830ced
|
@ -4907,7 +4907,7 @@ Document::OpenResult Document::openDocumentArchive( const QString & docFile, con
|
|||
|
||||
const QString tempFileName = d->m_archiveData->document.fileName();
|
||||
QMimeDatabase db;
|
||||
const QMimeType docMime = db.mimeTypeForFile( tempFileName, QMimeDatabase::MatchContent );
|
||||
const QMimeType docMime = db.mimeTypeForFile( tempFileName, QMimeDatabase::MatchExtension );
|
||||
const OpenResult ret = openDocument( tempFileName, url, docMime, password );
|
||||
|
||||
if ( ret != OpenSuccess )
|
||||
|
|
Loading…
Reference in a new issue