From a535c7453f58c21c1b41c45c7833c08207c2c40b Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 30 Mar 2019 03:30:50 +0100 Subject: GTreeView: On model selection change, open the selected index. --- LibGUI/GTreeView.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'LibGUI/GTreeView.cpp') 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; -- cgit v1.2.3