mirror of
https://invent.kde.org/graphics/okular
synced 2024-08-25 10:55:37 +00:00
Fix bug: when opening look at available mime types
This code used to look at the reference count of the pointer, not the number of available mime types as was intended. CCMAIL: aacid@kde.org
This commit is contained in:
parent
9eec8ece73
commit
e638e59c15
|
@ -2116,7 +2116,7 @@ Document::OpenResult Document::openDocument( const QString & docFile, const KUrl
|
|||
bool triedMimeFromFileContent = false;
|
||||
if ( !isstdin )
|
||||
{
|
||||
if ( mime.count() <= 0 )
|
||||
if ( mime->allMimeTypes().count() <= 0 )
|
||||
return OpenError;
|
||||
|
||||
// docFile is always local so we can use QFileInfo on it
|
||||
|
|
Loading…
Reference in a new issue