mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +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)
|
||||
*/
|
||||
public void setCondition(ICDICondition condition) throws CDIException {
|
||||
mgr.setCondition(this, condition);
|
||||
if (isEnabled()) {
|
||||
mgr.setCondition(this, condition);
|
||||
}
|
||||
this.condition = condition;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue