IDEA-90112 Can't collapse nodes in file structure tree

This commit is contained in:
Konstantin Bulenkov
2012-08-15 14:34:52 +04:00
parent 179788ce7e
commit de446e0380
@@ -534,6 +534,8 @@ public class FileStructurePopup implements Disposable {
new ClickListener() {
@Override
public boolean onClick(MouseEvent e, int clickCount) {
final TreePath path = myTree.getPathForLocation(e.getX(), e.getY());
if (path == null) return false; // user wants to expand/collapse a node
navigateSelectedElement();
return true;
}