Summary: | System Settings crashes after removing the first app from Shortcuts KCM | ||
---|---|---|---|
Product: | [Applications] systemsettings | Reporter: | Patrick Silva <bugseforuns> |
Component: | kcm_keys | Assignee: | Plasma Bugs List <plasma-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | fanzhuyifan, kde |
Priority: | NOR | Keywords: | qt6 |
Version: | 5.27.80 | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
See Also: |
https://bugs.kde.org/show_bug.cgi?id=477001 https://bugs.kde.org/show_bug.cgi?id=477020 |
||
Latest Commit: | https://invent.kde.org/plasma/plasma-desktop/-/commit/f621c718c55fbab2f63c3af48a54ed9f84b8ffc0 | Version Fixed In: | |
Sentry Crash Report: |
Description
Patrick Silva
2023-11-18 15:22:14 UTC
Can reproduce on latest neon unstable. A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/1843 Git commit f621c718c55fbab2f63c3af48a54ed9f84b8ffc0 by Nicolas Fella. Committed on 19/11/2023 at 21:03. Pushed by nicolasfella into branch 'master'. [kcms/keys] Don't remove items from list while iterating removeComponent removes the item from m_components, so we must not do that while iterating over m_components Instead make a pass over the list, remember the to-be-deleted components, delete them, then process the rest M +10 -2 kcms/keys/globalaccelmodel.cpp https://invent.kde.org/plasma/plasma-desktop/-/commit/f621c718c55fbab2f63c3af48a54ed9f84b8ffc0 Can confirm the fix |