IDEA-119436 vcs: do not show diff on double click on checkbox in ChangesBrowser

This commit is contained in:
Aleksey Pivovarov
2015-04-25 12:49:22 +03:00
parent 008d19b06c
commit 1621e1c04a
@@ -219,6 +219,13 @@ public abstract class ChangesTreeList<T> extends JPanel implements TypeSafeDataP
: myTree.getPathForLocation(e.getX(), e.getY());
if (clickPath == null) return false;
final int row = myTree.getRowForLocation(e.getPoint().x, e.getPoint().y);
if (row >= 0) {
final Rectangle baseRect = myTree.getRowBounds(row);
baseRect.setSize(checkboxWidth, baseRect.height);
if (baseRect.contains(e.getPoint())) return false;
}
myDoubleClickHandler.run();
return true;
}