adjust QMimeDatabase implementation
authorDebian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Fri, 13 Jan 2023 07:41:54 +0000 (07:41 +0000)
committerDmitry Shachnev <mitya57@debian.org>
Fri, 13 Jan 2023 07:41:54 +0000 (07:41 +0000)
commit682bf8d2590efa7c2678f1510bb3669a9cf57365
treee9762c8bcb47be5128649d3246ca25e330b51268
parentd49e9d55236d1bcd05232d130f5bb1a57117e98e
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