From adc7ce882df85a232d93ec8d19b468a82b831c1c Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Mon, 19 Oct 2009 00:21:04 +0000 Subject: [PATCH] check the actual mime type names and not their pointers will be in kde 4.3.3 CCBUG: 210882 svn path=/branches/KDE/4.3/kdegraphics/okular/; revision=1037415 --- core/document.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/document.cpp b/core/document.cpp index 085808dea..7d10a6178 100644 --- a/core/document.cpp +++ b/core/document.cpp @@ -1592,7 +1592,7 @@ bool Document::openDocument( const QString & docFile, const KUrl& url, const KMi { KMimeType::Ptr newmime = KMimeType::findByFileContent( docFile ); loadingMimeByContent = true; - if ( newmime != mime ) + if ( newmime->name() != mime->name() ) { mime = newmime; offers = KMimeTypeTrader::self()->query( mime->name(), "okular/Generator", constraint ); @@ -1636,7 +1636,7 @@ bool Document::openDocument( const QString & docFile, const KUrl& url, const KMi { KMimeType::Ptr newmime = KMimeType::findByFileContent( docFile ); loadingMimeByContent = true; - if ( newmime != mime ) + if ( newmime->name() != mime->name() ) { mime = newmime; offers = KMimeTypeTrader::self()->query( mime->name(), "okular/Generator", constraint );