mirror of
https://github.com/RGBCube/serenity
synced 2025-05-19 23:35:08 +00:00
GTreeView: On model selection change, open the selected index.
This commit is contained in:
parent
2c6a597d77
commit
a535c7453f
1 changed files with 1 additions and 0 deletions
|
@ -293,6 +293,7 @@ void GTreeView::did_update_selection()
|
|||
auto index = model.selected_index();
|
||||
if (!index.is_valid())
|
||||
return;
|
||||
ensure_metadata_for_index(index).open = true;
|
||||
auto parent = index.parent();
|
||||
while (parent.is_valid()) {
|
||||
ensure_metadata_for_index(parent).open = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue