https://bugs.kde.org/show_bug.cgi?id=482095

--- Comment #5 from Harald Sitter <sit...@kde.org> ---
https://invent.kde.org/plasma/discover/-/blob/318739412171e08c60d13832a1584ebbfdd4bb9d/libdiscover/resources/ResourcesProxyModel.cpp#L636

The assert trips up on KNS resources that have the same user facing name.

For example here's `name packageName` when searching for 'libreoffice':

discover(67140)/(default) ResourcesProxyModel::sortedInsertion: "FS Icons
Ubuntu" "1002489"
discover(67140)/(default) ResourcesProxyModel::sortedInsertion: "FS Icons
Ubuntu" "1012533"

This happens because AbstractResource implements a nameSortKey() that is based
on name. Indeed it must be because we want to sort the visual results by...
name.

To pass the assertion I suppose the KNS backend should deduplicate names
somehow?

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to