Skip to content
Snippets Groups Projects
Commit e7cd3535 authored by wiegard's avatar wiegard
Browse files

workaround in switch

parent aeb4d6ac
No related branches found
No related tags found
No related merge requests found
...@@ -116,6 +116,16 @@ public class Switch extends BControl { ...@@ -116,6 +116,16 @@ public class Switch extends BControl {
protected Object readResolve() { protected Object readResolve() {
super.readResolve(); super.readResolve();
for (BControl control : getChildrenArray()) { for (BControl control : getChildrenArray()) {
for (Track n : ((TrackNode) control).getSourceTracks()) {
AbstractAttribute a2 = n
.getAttribute(AttributeConstants.ATTRIBUTE_CUSTOM);
a2.setEditable(false);
if (a2.getValue().equals("LEFT")) {
track1 = n;
} else if (a2.getValue().equals("RIGHT")) {
track2 = n;
}
}
for (Track n : ((TrackNode) control).getTargetTracks()) { for (Track n : ((TrackNode) control).getTargetTracks()) {
AbstractAttribute a2 = n AbstractAttribute a2 = n
.getAttribute(AttributeConstants.ATTRIBUTE_CUSTOM); .getAttribute(AttributeConstants.ATTRIBUTE_CUSTOM);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment