summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@digia.com>2014-08-08 22:53:01 (GMT)
committerFrederik Gladhorn <frederik.gladhorn@digia.com>2014-08-08 22:53:03 (GMT)
commite638e59c15ae6099634706e125611314d569b054 (patch)
tree7cd81a0ee5d36363a770c3fbb1916842a1aa380e
parent9eec8ece731507c70a9de566f8fa1d0645dc3e49 (diff)
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
-rw-r--r--core/document.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/document.cpp b/core/document.cpp
index d6f263d..f720172 100644
--- a/core/document.cpp
+++ b/core/document.cpp
@@ -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