TreeUi: infinite loop of expanding non-visible empty root fixed

This commit is contained in:
Kirill Kalishev
2009-10-02 17:09:23 +04:00
parent 46fdc957e9
commit a435ad948d
@@ -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) {