Use XMLNode::get/set_property API in ARDOUR::SoloIsolateControl class
This commit is contained in:
parent
499e790733
commit
60e2fd3c8a
@ -159,12 +159,7 @@ SoloIsolateControl::set_state (XMLNode const & node, int version)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
XMLProperty const * prop;
|
node.get_property ("solo-isolated", _solo_isolated);
|
||||||
|
|
||||||
if ((prop = node.property ("solo-isolated")) != 0) {
|
|
||||||
_solo_isolated = string_is_affirmative (prop->value());
|
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -172,6 +167,6 @@ XMLNode&
|
|||||||
SoloIsolateControl::get_state ()
|
SoloIsolateControl::get_state ()
|
||||||
{
|
{
|
||||||
XMLNode& node (SlavableAutomationControl::get_state());
|
XMLNode& node (SlavableAutomationControl::get_state());
|
||||||
node.add_property (X_("solo-isolated"), _solo_isolated ? X_("yes") : X_("no"));
|
node.set_property (X_("solo-isolated"), _solo_isolated);
|
||||||
return node;
|
return node;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user