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:
parent
1f2942e78e
commit
c95bdf8998
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue