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

cwo <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
      Latest Commit|                            |https://invent.kde.org/fram
                   |                            |eworks/kservice/-/commit/7e
                   |                            |643dbcd3d780894278a036417ce
                   |                            |50ef46a5ebd
         Resolution|---                         |FIXED

--- Comment #17 from cwo <[email protected]> ---
Git commit 7e643dbcd3d780894278a036417ce50ef46a5ebd by Christoph Wolk.
Committed on 18/06/2026 at 05:44.
Pushed by cwo into branch 'master'.

services/kservicegroup: include storageId in sorting key

KServiceGroupPrivate::entries uses a QMap for sorting, using the
sort key as the key to the map. The sort key is the display name of the
application and its generic name (with the order being determined by a
parameter). This will fail if two separate apps have the same name and
generic name; both evaluate to the same key, so only one is added to the
final list and the other just goes away. (This is in particular common
for simple apps where the name is itself a generic name, like
"Calculator", especially now that apps often don't have a generic name
set).

Instead, also add the storageId to the sort key, which should make it
unique.

M  +2    -2    src/services/kservicegroup.cpp

https://invent.kde.org/frameworks/kservice/-/commit/7e643dbcd3d780894278a036417ce50ef46a5ebd

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

Reply via email to