The source project of this merge request has been removed.
[Qt5] QMimeDatabase: handle buggy type definitions with circular inheritance
Cherry-picked commit from Qt 6.
This fixes an infinite loop reported by a user who had both the definition of text/javascript from shared-mime-info 2.3 and the definition of text/javascript from shared-mime-info 2.4 installed at the same time. In 2.3, text/javascript is a subtype of application/ecmascript, but in 2.4 application/ecmascript is a subtype of text/javascript. Having both at the same time resulted in circular inheritance.