Further defer changes of plugin Tags+Status, and consolidate code to call PluginListC...
[ardour.git] / libs / ardour / solo_safe_control.cc
index 92c6c9ec206305aa9d227ae86ef2886ac1d814cc..2efb1254c7c35555f8b625e17a09602d7655c821 100644 (file)
@@ -46,7 +46,6 @@ SoloSafeControl::actually_set_value (double val, PBD::Controllable::GroupControl
        */
 
        AutomationControl::actually_set_value (val, gcd);
-       _session.set_dirty ();
 }
 
 double
@@ -66,14 +65,13 @@ SoloSafeControl::get_value () const
 }
 
 int
-SoloSafeControl::set_state (XMLNode const & node, int)
+SoloSafeControl::set_state (XMLNode const & node, int version)
 {
-       XMLProperty const * prop;
-
-       if ((prop = node.property ("solo-safe")) != 0) {
-               _solo_safe = string_is_affirmative (prop->value());
+       if (SlavableAutomationControl::set_state(node, version)) {
+               return -1;
        }
 
+       node.get_property ("solo-safe", _solo_safe);
        return 0;
 }
 
@@ -81,6 +79,6 @@ XMLNode&
 SoloSafeControl::get_state ()
 {
        XMLNode& node (SlavableAutomationControl::get_state());
-       node.add_property (X_("solo-safe"), _solo_safe ? X_("yes") : X_("no"));
+       node.set_property (X_("solo-safe"), _solo_safe);
        return node;
 }