From 6cd86fceb0de165fb7aaf0dbe18a29862ef1285b Mon Sep 17 00:00:00 2001 From: "andrey.zaytsev" Date: Mon, 13 Aug 2012 18:34:05 +0400 Subject: [PATCH] breakpoints-ui. IDEA-90010 Edit breakpoint popup: after a condition for bp1 has been entered, opening and closing the popup for bp2 results in setting the condition for bp2 --- .../impl/breakpoints/ui/XLightBreakpointPropertiesPanel.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/breakpoints/ui/XLightBreakpointPropertiesPanel.java b/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/breakpoints/ui/XLightBreakpointPropertiesPanel.java index 27b426af12ee..4d410ce5b29d 100644 --- a/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/breakpoints/ui/XLightBreakpointPropertiesPanel.java +++ b/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/breakpoints/ui/XLightBreakpointPropertiesPanel.java @@ -142,7 +142,9 @@ public class XLightBreakpointPropertiesPanel> implement final String text = myConditionComboBox.getText(); final String condition = StringUtil.isEmptyOrSpaces(text) ? null : text; myBreakpoint.setCondition(condition); - myConditionComboBox.saveTextInHistory(); + if (condition != null) { + myConditionComboBox.saveTextInHistory(); + } } for (XBreakpointCustomPropertiesPanel customPanel : myCustomPanels) {