diff --git a/openide.explorer/src/org/openide/explorer/view/TreeView.java b/openide.explorer/src/org/openide/explorer/view/TreeView.java index 238bc0e..d0d3b9b 100644 --- a/openide.explorer/src/org/openide/explorer/view/TreeView.java +++ b/openide.explorer/src/org/openide/explorer/view/TreeView.java @@ -1223,7 +1223,7 @@ public abstract class TreeView extends JScrollPane implements ContextMenuCustomi if (selPaths != null) { TreePath path = new TreePath(vn.getPathToRoot()); for(TreePath tp : selPaths) { - if (path.isDescendant(tp)) { + if (!path.equals(tp) && path.isDescendant(tp)) { if (remSel == null) { remSel = new ArrayList(); }