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

David Edmundson <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|                            |https://invent.kde.org/plas
                   |                            |ma/plasma-systemmonitor/-/c
                   |                            |ommit/f9c3f4c5d35b5ef2d6de4
                   |                            |2c4625c2216203e18cb
         Resolution|---                         |FIXED
             Status|ASSIGNED                    |RESOLVED

--- Comment #2 from David Edmundson <[email protected]> ---
Git commit f9c3f4c5d35b5ef2d6de42c4625c2216203e18cb by David Edmundson.
Committed on 26/09/2026 at 06:48.
Pushed by davidedmundson into branch 'master'.

Fix cache clean up with ComponentCacheModel

There were numerous bugs with the ComponentCacheModel:

Cached instances were never deleted up on row removal or insertion, only
from a model clear or when the model itself gets deleted.

This hid three other bugs:
 - we cannot safely use "index" after a row has been removed

- start and end in the arguments are inclusive. i.e a removal of row 0
to 0 removes 1 row.

- in the connect the parent model index is from the parent, index
requires an index from this model

Credit to: Chris Purcell

M  +8    -9    src/table/ComponentCacheProxyModel.cpp
M  +2    -2    src/table/ComponentCacheProxyModel.h

https://invent.kde.org/plasma/plasma-systemmonitor/-/commit/f9c3f4c5d35b5ef2d6de42c4625c2216203e18cb

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

Reply via email to