summaryrefslogtreecommitdiff
path: root/LibGUI/GTreeView.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-03-30 03:30:50 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-03-30 03:30:50 +0100
commita535c7453f58c21c1b41c45c7833c08207c2c40b (patch)
treee69a619b995875923dec04b9d13b643f6d14e6b8 /LibGUI/GTreeView.cpp
parent2c6a597d7767d38fc5c8e743dd57f13733c1287f (diff)
downloadserenity-a535c7453f58c21c1b41c45c7833c08207c2c40b.zip
GTreeView: On model selection change, open the selected index.
Diffstat (limited to 'LibGUI/GTreeView.cpp')
-rw-r--r--LibGUI/GTreeView.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/LibGUI/GTreeView.cpp b/LibGUI/GTreeView.cpp
index 475e3cdd81..aaf76ee677 100644
--- a/LibGUI/GTreeView.cpp
+++ b/LibGUI/GTreeView.cpp
@@ -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;