From 43c27ebaef551a6c4b68bde2a3d8da6015981dda Mon Sep 17 00:00:00 2001 From: "andrey.zaytsev" Date: Mon, 23 Jul 2012 16:49:44 +0400 Subject: [PATCH] IDEA-87924 Debugger: Ease defining breakpoint condition. Condition checkbox enables when condition is empty --- .../debugger/ui/breakpoints/BreakpointPropertiesPanel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/debugger/impl/src/com/intellij/debugger/ui/breakpoints/BreakpointPropertiesPanel.java b/java/debugger/impl/src/com/intellij/debugger/ui/breakpoints/BreakpointPropertiesPanel.java index e7323b367208..2465d872de87 100644 --- a/java/debugger/impl/src/com/intellij/debugger/ui/breakpoints/BreakpointPropertiesPanel.java +++ b/java/debugger/impl/src/com/intellij/debugger/ui/breakpoints/BreakpointPropertiesPanel.java @@ -570,7 +570,7 @@ public abstract class BreakpointPropertiesPanel { PsiElement context = breakpoint.getEvaluationElement(); myPassCountCheckbox.setSelected(breakpoint.COUNT_FILTER_ENABLED); - myConditionCheckbox.setSelected(breakpoint.CONDITION_ENABLED); + myConditionCheckbox.setSelected(breakpoint.CONDITION_ENABLED || breakpoint.getCondition() == null || breakpoint.getCondition().isEmpty()); myConditionCombo.setEnabled(myBreakpoint.CONDITION_ENABLED);