#1047 6.0.2 open all scripts folders: fix

This commit is contained in:
honfika@gmail.com
2015-09-13 08:31:41 +02:00
parent cf5cc27349
commit 3958217d93
2 changed files with 7 additions and 3 deletions

View File

@@ -961,11 +961,14 @@ public final class MainPanel extends JPanel implements TreeSelectionListener, Se
List<TreeItem> nodes = getASTreeNodes(tagTree);
for (TreeItem n : nodes) {
if (n instanceof ClassesListTreeModel) {
((ClassesListTreeModel) n).setFilter(filterField.getText());
String filterText = filterField.getText();
((ClassesListTreeModel) n).setFilter(filterText);
TagTreeModel tm = tagTree.getModel();
TreePath path = tm.getTreePath(n);
tm.updateNode(path);
View.expandTreeNodes(tagTree, path, true);
if (!filterText.isEmpty()) {
View.expandTreeNodes(tagTree, path, true);
}
}
}
}