mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-23 18:32:53 +00:00
okular: do not compare KMimeType::Ptr in Okular::PageView::mouseReleaseEvent()
it is documented to not compare KMimeType pointers Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
c2d19af39f
commit
76899364a3
1 changed files with 1 additions and 1 deletions
|
@ -2506,7 +2506,7 @@ void PageView::mouseReleaseEvent( QMouseEvent * e )
|
|||
{
|
||||
KMimeType::Ptr mime = KMimeType::findByUrl( fileName );
|
||||
QString type = QString::fromLatin1("PNG");
|
||||
if ( mime && mime != KMimeType::defaultMimeTypePtr() ) {
|
||||
if ( mime && !mime->isDefault() ) {
|
||||
const QString formatType = KImageIO::typeForMime(mime->name(), KImageIO::Writing);
|
||||
if (!formatType.isEmpty()) {
|
||||
type = formatType;
|
||||
|
|
Loading…
Add table
Reference in a new issue