adjust QMimeDatabase implementation
authorDebian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Sat, 13 May 2023 11:12:14 +0000 (12:12 +0100)
committerDmitry Shachnev <mitya57@debian.org>
Sat, 13 May 2023 11:12:14 +0000 (12:12 +0100)
commita2b1bb199022e260901586db4c793c7893d0b4df
treeaa4805ab6958d5b083a4441ac0462f2ea31253e2
parentf1ad401f28e4b964467c3b5ab61b00061f52062f
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