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:
parent
bdb6b2ced3
commit
a06548eaf7
3 changed files with 19 additions and 1 deletions
|
@ -89,6 +89,8 @@ public:
|
|||
return *m_indexes.begin();
|
||||
}
|
||||
|
||||
void remove_matching(Function<bool(const ModelIndex&)>);
|
||||
|
||||
private:
|
||||
AbstractView& m_view;
|
||||
HashTable<ModelIndex> m_indexes;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue