SUMMARY When creating activities they only show up after reopening the kcm STEPS TO REPRODUCE 1. Add new activity 2. click save OBSERVED RESULT New activity not shown EXPECTED RESULT acitvity shown SOFTWARE/OS VERSIONS Linux/KDE Plasma: neon KDE Plasma Version: master KDE Frameworks Version: master Qt Version: 6.9.2
Seems they also do not persist between log ins
With today's git master, I can reproduce the KCM issue, but for me, newly-created activities do show up on re-login. Let's use this to track the KCM issue.
ugh, it seems to work _sometimes_?
This seems to be caused by https://invent.kde.org/plasma/plasma-activities/-/commit/e5c46ac3c99ff1f078b0c461498652a55b2ebf85 The index where the new activity is inserted (https://invent.kde.org/plasma/plasma-activities/-/blob/master/src/imports/activitymodel.cpp#L385) sometimes has nonsensical values like 4294047598
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-activities/-/merge_requests/66
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-activities/-/merge_requests/67
Git commit bfb8ac19f1d53e40a114e4f12d9f3537261e59e3 by Waqar Ahmed. Committed on 21/09/2025 at 11:25. Pushed by davidedmundson into branch 'master'. Fix broken QFlatSet insertion - Use the iterator returned from insert() instead of reusing the existing iterator because it might be invalidated - dont cache begin(), end(). They make it very easy to write wrong code because begin()/end() might be different post insertion. M +5 -0 autotests/core/CMakeLists.txt A +54 -0 autotests/core/QFlatSetTest.cpp * M +6 -8 src/utils/qflatset.h The files marked with a * at the end have a non valid license. Please read: https://community.kde.org/Policies/Licensing_Policy and use the headers which are listed at that page. https://invent.kde.org/plasma/plasma-activities/-/commit/bfb8ac19f1d53e40a114e4f12d9f3537261e59e3
Git commit 60229e33f8b1a69256226e2eb8dbe315aaa35cd9 by Nicolas Fella, on behalf of Waqar Ahmed. Committed on 23/09/2025 at 09:46. Pushed by nicolasfella into branch 'Plasma/6.5'. Fix broken QFlatSet insertion - Use the iterator returned from insert() instead of reusing the existing iterator because it might be invalidated - dont cache begin(), end(). They make it very easy to write wrong code because begin()/end() might be different post insertion. (cherry picked from commit bfb8ac19f1d53e40a114e4f12d9f3537261e59e3) M +5 -0 autotests/core/CMakeLists.txt A +54 -0 autotests/core/QFlatSetTest.cpp * M +6 -8 src/utils/qflatset.h The files marked with a * at the end have a non valid license. Please read: https://community.kde.org/Policies/Licensing_Policy and use the headers which are listed at that page. https://invent.kde.org/plasma/plasma-activities/-/commit/60229e33f8b1a69256226e2eb8dbe315aaa35cd9