diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-03-30 03:30:50 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-03-30 03:30:50 +0100 |
commit | a535c7453f58c21c1b41c45c7833c08207c2c40b (patch) | |
tree | e69a619b995875923dec04b9d13b643f6d14e6b8 /LibGUI/GTreeView.cpp | |
parent | 2c6a597d7767d38fc5c8e743dd57f13733c1287f (diff) | |
download | serenity-a535c7453f58c21c1b41c45c7833c08207c2c40b.zip |
GTreeView: On model selection change, open the selected index.
Diffstat (limited to 'LibGUI/GTreeView.cpp')
-rw-r--r-- | LibGUI/GTreeView.cpp | 1 |
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; |