https://bugs.kde.org/show_bug.cgi?id=475200
David Redondo <k...@david-redondo.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Latest Commit| |https://invent.kde.org/fram | |eworks/kservice/-/commit/f4 | |24bd3aab78bf1e3a6c93aed7f45 | |62d56c776a7 Resolution|--- |FIXED Status|ASSIGNED |RESOLVED --- Comment #5 from David Redondo <k...@david-redondo.de> --- Git commit f424bd3aab78bf1e3a6c93aed7f4562d56c776a7 by David Redondo. Committed on 24/10/2023 at 10:19. Pushed by davidre into branch 'master'. Fix preferred apps order for multiple level mime inheritance We should prefer more specific mime types to less specific for that reason offers are sorted by inheritance level first. When constructing the offers for inherited types, the associated services for parent types are queried. However these can already contain services that are associated with a parent type of the parent type as the offers are build from the bottom-up starting with the least specific mime type. For example when constructing offers for a mime-type that inherits text/plain, the returned offers for text/plain will already contain services associated with application/octet-stream. By incrementing the inheritance levels instead of overwriting the relative ordering of inherited mime types is preserved. M +24 -0 autotests/kmimeassociationstest.cpp M +4 -4 src/sycoca/kbuildservicefactory.cpp M +1 -1 src/sycoca/kbuildservicefactory_p.h https://invent.kde.org/frameworks/kservice/-/commit/f424bd3aab78bf1e3a6c93aed7f4562d56c776a7 -- You are receiving this mail because: You are watching all bug changes.