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

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

XMLWordPrintable

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

      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).

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes