https://bugs.kde.org/show_bug.cgi?id=416092

o.ha...@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
         Resolution|DOWNSTREAM                  |---
             Status|RESOLVED                    |REOPENED

--- Comment #10 from o.ha...@gmail.com ---
I have looked through the Ark sources and I believe these lines are the reason
the solution using custom mimetypes does not work:
https://github.com/KDE/ark/blob/108ade3b57f1eca792a54843e9c646eb1322a7ef/kerfuffle/mimetypes.cpp#L96

Would it be possible to change these lines

    (mimeFromExtension == db.mimeTypeForName(QStringLiteral("...")) &&

to lines like this?

    (mimeFromExtension.inherits(db.mimeTypeForName(QStringLiteral("..."))) &&

Note the use of inherits() instead of operator==().

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to