adjust QMimeDatabase implementation
authorDebian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Thu, 12 Jan 2023 11:43:32 +0000 (11:43 +0000)
committerDmitry Shachnev <mitya57@debian.org>
Thu, 12 Jan 2023 11:43:32 +0000 (11:43 +0000)
commitf5d75877465ddef9669c3ed82ab2a0352c2b9892
tree326591c5f11d00ad8a2ff00b977cc9131492522d
parent7a0de100a7927fb4455a7caf3da75b3cd9ecf3fe
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