summaryrefslogtreecommitdiff
path: root/libs/ardour/solo_isolate_control.cc
diff options
context:
space:
mode:
authorTim Mayberry <mojofunk@gmail.com>2016-08-28 10:28:44 +1000
committerTim Mayberry <mojofunk@gmail.com>2017-04-19 09:36:51 +1000
commit60e2fd3c8a03d467373f436bb0114bb7dc5c4a40 (patch)
tree25d51eeb338cd4926c5e19d840506300709cdc10 /libs/ardour/solo_isolate_control.cc
parent499e7907337da36d6d0440c22a2f63e3ada7c439 (diff)
Use XMLNode::get/set_property API in ARDOUR::SoloIsolateControl class
Diffstat (limited to 'libs/ardour/solo_isolate_control.cc')
-rw-r--r--libs/ardour/solo_isolate_control.cc9
1 files changed, 2 insertions, 7 deletions
diff --git a/libs/ardour/solo_isolate_control.cc b/libs/ardour/solo_isolate_control.cc
index c2d7f13d2c..90132a951c 100644
--- a/libs/ardour/solo_isolate_control.cc
+++ b/libs/ardour/solo_isolate_control.cc
@@ -159,12 +159,7 @@ SoloIsolateControl::set_state (XMLNode const & node, int version)
return -1;
}
- XMLProperty const * prop;
-
- if ((prop = node.property ("solo-isolated")) != 0) {
- _solo_isolated = string_is_affirmative (prop->value());
- }
-
+ node.get_property ("solo-isolated", _solo_isolated);
return 0;
}
@@ -172,6 +167,6 @@ XMLNode&
SoloIsolateControl::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;
}