mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 12:35:14 +00:00
TreeView: Clear metadata after model update
When the filesystem model is updated, it is rebuilt. This means dangling indexes inside the TreeView metadata table will have old information and random directories will toggle open. Clearing the table alleviates this issue.
This commit is contained in:
parent
2bd640277e
commit
d8b7cd940f
Notes:
sideshowbarker
2024-07-19 10:52:38 +09:00
Author: https://github.com/remyabel2 Commit: https://github.com/SerenityOS/serenity/commit/d8b7cd940fb
1 changed files with 1 additions and 0 deletions
|
@ -250,6 +250,7 @@ void GTreeView::scroll_into_view(const GModelIndex& a_index, Orientation orienta
|
|||
|
||||
void GTreeView::did_update_model()
|
||||
{
|
||||
m_view_metadata.clear();
|
||||
GAbstractView::did_update_model();
|
||||
update_content_size();
|
||||
update();
|
||||
|
|
Loading…
Add table
Reference in a new issue