Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-58938

QMimeDatabase::MatchDefault does not work with application/pgp-encrypted files

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • 5.9.0 Beta 2
    • 5.8.0
    • Core: Other
    • None
    • Linux

    Description

      QMimeDatabase::mimeTypeForFile() by default uses QMimeDatabase::MatchDefault as match mode, but it doesn't work with application/pgp-encrypted files (i.e. gpg ascii-armored files). They are detected as text/plain instead.

      The attached test case reproduces the issue (you just need to change one path).

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            dfaure_kdab David Faure
            elvisangelaccio Elvis Angelaccio
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes