set_id (**i);
- if ((prop = (*i)->property ("active")) != 0) {
+ //note: in A2, active state was stored in the Redirect node, not the child IO node
+ /*
+ * if ((prop = (*i)->property ("active")) != 0) {
bool const a = string_is_affirmative (prop->value ());
if (_active != a) {
if (a) {
deactivate ();
}
}
- }
+ }*/
+
}
}
if (processor->set_state (node, version)) {
return false;
}
+
+ //A2 uses the "active" flag in the toplevel redirect node, not in the child plugin/IO
+ if (i != children.end()) {
+ if ((prop = (*i)->property (X_("active"))) != 0) {
+ if ( string_is_affirmative (prop->value()) )
+ processor->activate();
+ else
+ processor->deactivate();
+ }
+ }
- return (add_processor (processor, placement) == 0);
+ return (add_processor (processor, placement, 0, false) == 0);
}
catch (failed_constructor &err) {