Collect plugin runtime profile statistics.
[ardour.git] / libs / ardour / solo_safe_control.cc
index 01d56ddf58eed536a5c54e66d1d687a3eb97684b..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
@@ -72,12 +71,7 @@ SoloSafeControl::set_state (XMLNode const & node, int version)
                return -1;
        }
 
-       XMLProperty const * prop;
-
-       if ((prop = node.property ("solo-safe")) != 0) {
-               _solo_safe = string_is_affirmative (prop->value());
-       }
-
+       node.get_property ("solo-safe", _solo_safe);
        return 0;
 }
 
@@ -85,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;
 }