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

This commit is contained in:
andrey.zaytsev
2012-08-13 22:52:46 +04:00
parent ade696d178
commit 6cd86fceb0
@@ -142,7 +142,9 @@ public class XLightBreakpointPropertiesPanel<B extends XBreakpoint<?>> 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<B> customPanel : myCustomPanels) {