Index: src/org/openide/explorer/view/TreeView.java =================================================================== RCS file: /cvs/openide/src/org/openide/explorer/view/TreeView.java,v retrieving revision 1.130 diff -u -r1.130 TreeView.java --- src/org/openide/explorer/view/TreeView.java 26 Mar 2003 23:54:34 -0000 1.130 +++ src/org/openide/explorer/view/TreeView.java 3 Apr 2003 15:49:18 -0000 @@ -1539,12 +1539,9 @@ super.treeNodesRemoved (e); if (tree.getSelectionCount () == 0) { TreePath path = findSiblingTreePath (e.getTreePath (), e.getChildIndices ()); - if (path != null) { - if (path.getPathCount () > 0 || tree.isRootVisible ()) { - tree.setSelectionPath (path); - } + if (path != null && path.getPathCount () > 0) { + tree.setSelectionPath (path); } - tree.requestFocus (); } } }