From: Marko Luukkainen Date: Tue, 14 Jan 2020 12:16:09 +0000 (+0200) Subject: Default dependencies made delete op to apply additions X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F79%2F3779%2F1;p=simantics%2Finterop.git Default dependencies made delete op to apply additions gitlab #16 Change-Id: I5ccf1ffeb5fca0db25c3fde13b6bf85566a749ef --- diff --git a/org.simantics.interop.update/src/org/simantics/interop/update/model/AddDeleteUpdateOp.java b/org.simantics.interop.update/src/org/simantics/interop/update/model/AddDeleteUpdateOp.java index 3bd21b0..3f4b6bf 100644 --- a/org.simantics.interop.update/src/org/simantics/interop/update/model/AddDeleteUpdateOp.java +++ b/org.simantics.interop.update/src/org/simantics/interop/update/model/AddDeleteUpdateOp.java @@ -42,10 +42,10 @@ public abstract class AddDeleteUpdateOp extends UpdateOp { @Override public boolean requiresOp(UpdateOp op) { if (add) { - if (getParentOps().contains(op)) + if (getParentOps().contains(op) && op.isAdd()) return true; } else { - if (getSubOps().contains(op)) + if (getSubOps().contains(op) && op.isDelete()) return true; } return false;