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:
Frederik Gladhorn 2014-08-09 00:53:01 +02:00
parent 9eec8ece73
commit e638e59c15

View file

@ -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