From 1621e1c04a734ba7a2960bf2d6cd44e04a289aff Mon Sep 17 00:00:00 2001 From: Aleksey Pivovarov Date: Sat, 25 Apr 2015 12:49:22 +0300 Subject: [PATCH] IDEA-119436 vcs: do not show diff on double click on checkbox in ChangesBrowser --- .../intellij/openapi/vcs/changes/ui/ChangesTreeList.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ui/ChangesTreeList.java b/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ui/ChangesTreeList.java index 9ae9b9548d6d..deb05661ec4f 100644 --- a/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ui/ChangesTreeList.java +++ b/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ui/ChangesTreeList.java @@ -219,6 +219,13 @@ public abstract class ChangesTreeList 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; }