diff --git a/model/src/main/java/li/strolch/model/activity/Action.java b/model/src/main/java/li/strolch/model/activity/Action.java index 11d0d6082..d272297df 100644 --- a/model/src/main/java/li/strolch/model/activity/Action.java +++ b/model/src/main/java/li/strolch/model/activity/Action.java @@ -391,6 +391,7 @@ public String toString() { public void setParent(Activity activity) { assertNotReadonly(); this.parent = activity; + this.locator = null; } @Override diff --git a/model/src/main/java/li/strolch/model/activity/Activity.java b/model/src/main/java/li/strolch/model/activity/Activity.java index 98188d75f..9a54c5111 100644 --- a/model/src/main/java/li/strolch/model/activity/Activity.java +++ b/model/src/main/java/li/strolch/model/activity/Activity.java @@ -892,6 +892,7 @@ public PolicyDef findPolicy(String className, PolicyDef defaultDef) throws Strol public void setParent(Activity activity) { assertNotReadonly(); this.parent = activity; + this.locator = null; } /**