Преглед на файлове

GTreeView: On model selection change, open the selected index.

Andreas Kling преди 6 години
родител
ревизия
a535c7453f
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      LibGUI/GTreeView.cpp

+ 1 - 0
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;