adjust QMimeDatabase implementation
authorDebian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Tue, 24 Oct 2023 11:07:10 +0000 (14:07 +0300)
committerDmitry Shachnev <mitya57@debian.org>
Tue, 24 Oct 2023 11:07:10 +0000 (14:07 +0300)
commitb70a746a133d43c044316da1429682fc1e0948ea
tree10b22d8ebbd84fb62e8e8c87022bf44535774069
parenta0c413de91e9f0a8193253bb80ce22f7c3c27915
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