adjust QMimeDatabase implementation
authorDebian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Sun, 14 Jul 2024 15:35:58 +0000 (18:35 +0300)
committerDmitry Shachnev <mitya57@debian.org>
Sun, 14 Jul 2024 15:35:58 +0000 (18:35 +0300)
commit7297d3c322c86cb359125df1f84fffb978ccb13a
tree28b3bf9a6a7091d70addab8eb15a93e5cbd6db04
parentc587bf344da64176ca03d2fbf4db5a43bb859a1f
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