mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
TreeUi: infinite loop of expanding non-visible empty root fixed
This commit is contained in:
@@ -805,10 +805,6 @@ class AbstractTreeUi {
|
||||
if (expanded) {
|
||||
expand(node, canSmartExpand);
|
||||
}
|
||||
|
||||
if (expanded || wasLeaf) {
|
||||
expand(node, descriptor, wasLeaf, canSmartExpand);
|
||||
}
|
||||
}
|
||||
|
||||
removeFromUpdating(node);
|
||||
@@ -2610,7 +2606,9 @@ class AbstractTreeUi {
|
||||
public void onReady(final DefaultMutableTreeNode node) {
|
||||
|
||||
if (node.getChildCount() > 0 && !myTree.isExpanded(new TreePath(node.getPath()))) {
|
||||
expand(node, canSmartExpand);
|
||||
if (!isAutoExpand(node)) {
|
||||
expand(node, canSmartExpand);
|
||||
}
|
||||
}
|
||||
|
||||
if (expandIndex <= 0) {
|
||||
|
||||
Reference in New Issue
Block a user