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

--- Comment #18 from cwo <[email protected]> ---
Git commit ec035323820781cc1a1f9af12de4f77bf4431952 by Christoph Wolk.
Committed on 13/05/2026 at 09:36.
Pushed by cwo into branch 'Plasma/6.6'.

applets/kicker: return more roles explicitly

Similar to ef0009ad and 510bd959

Kicker's models sometimes return an empty QVariant if the role is
irrelevant to the model. This breaks with required bool properties if
the ListView is reused with a different model; the empty QVariant does
not become false, but maintains the previous value. Main kicker's
submenus reuse the listview, so moving e.g. from an app category submenu
to Recents or system actions may cause entries there to be
inappropriately marked as subcategories, separators, or (in 6.7) as
newly installed.

Instead, explicitly return bool false for the roles where this may be an
issue.


(cherry picked from commit 175b6041d69506e0193419a51e3f858696bcc9ea)

Co-authored-by: Christoph Wolk <[email protected]>

M  +2    -0    applets/kicker/appsmodel.cpp
M  +12   -0    applets/kicker/recentusagemodel.cpp
M  +8    -0    applets/kicker/systemmodel.cpp

https://invent.kde.org/plasma/plasma-workspace/-/commit/ec035323820781cc1a1f9af12de4f77bf4431952

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

Reply via email to