diff options
Diffstat (limited to 'Userland/Libraries')
-rw-r--r-- | Userland/Libraries/LibGUI/TreeView.cpp | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/Userland/Libraries/LibGUI/TreeView.cpp b/Userland/Libraries/LibGUI/TreeView.cpp index 00f4f9fd61..be91aaaf61 100644 --- a/Userland/Libraries/LibGUI/TreeView.cpp +++ b/Userland/Libraries/LibGUI/TreeView.cpp @@ -418,19 +418,7 @@ void TreeView::did_update_selection() auto index = selection().first(); if (!index.is_valid()) return; -#if 0 - bool opened_any = false; - for (auto current = index; current.is_valid(); current = current.parent()) { - auto& metadata_for_ancestor = ensure_metadata_for_index(current); - if (!metadata_for_ancestor.open) { - metadata_for_ancestor.open = true; - opened_any = true; - } - } - if (opened_any) - update_content_size(); - update(); -#endif + if (activates_on_selection()) activate(index); } |