1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-05 08:46:02 +02:00

Only set the condition right away if it is enabled.

This commit is contained in:
Alain Magloire 2002-09-03 03:59:42 +00:00
parent 1f2942e78e
commit c95bdf8998

View file

@ -72,7 +72,9 @@ public class Breakpoint extends CObject implements ICDILocationBreakpoint {
* @see org.eclipse.cdt.debug.core.cdi.ICDIBreakpoint#setCondition(ICDICondition) * @see org.eclipse.cdt.debug.core.cdi.ICDIBreakpoint#setCondition(ICDICondition)
*/ */
public void setCondition(ICDICondition condition) throws CDIException { public void setCondition(ICDICondition condition) throws CDIException {
if (isEnabled()) {
mgr.setCondition(this, condition); mgr.setCondition(this, condition);
}
this.condition = condition; this.condition = condition;
} }