1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 09:38:11 +00:00

LibGUI: Keep still-valid indexes in selection after a model update

This is a stop-gap patch solution for the annoying problem of models
being bad at updating. At least the process table will retain your
selection in SystemMonitor now.
This commit is contained in:
Andreas Kling 2020-04-09 09:51:44 +02:00
parent bdb6b2ced3
commit a06548eaf7
3 changed files with 19 additions and 1 deletions

View file

@ -89,6 +89,8 @@ public:
return *m_indexes.begin();
}
void remove_matching(Function<bool(const ModelIndex&)>);
private:
AbstractView& m_view;
HashTable<ModelIndex> m_indexes;