adjust QMimeDatabase implementation
authorDebian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Thu, 24 Nov 2022 17:38:09 +0000 (17:38 +0000)
committerDmitry Shachnev <mitya57@debian.org>
Thu, 24 Nov 2022 17:38:09 +0000 (17:38 +0000)
commit3db494b0c77cee33e73137e04f1735b5c83ea452
tree30597c2fd9d224e6494fd5fc7255237be794ad42
parente06257844352e2290a45784d4a6ee2ba842ca4a8
adjust QMimeDatabase implementation

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=0cbbba2aa5b47224
Last-Update: 2021-06-12

When multiple globs match, and the result from magic sniffing is
unrelated to any of those globs, globs have priority and one of them
should be picked up.

Gbp-Pq: Name mime_globs.diff
src/corelib/mimetypes/qmimedatabase.cpp
src/corelib/mimetypes/qmimeglobpattern.cpp