From 3797d8c2f16c67b75972e2f84718ea6b2b64c9de Mon Sep 17 00:00:00 2001 From: Tim Mayberry Date: Tue, 20 Sep 2016 15:39:10 +1000 Subject: [PATCH] Fully restore ARDOUR::SoloSafeControl state This is part of a fix for bug #7025 which means the id property of PBD::Controllable is restored and a new id is not generated at first save. --- libs/ardour/solo_safe_control.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libs/ardour/solo_safe_control.cc b/libs/ardour/solo_safe_control.cc index 92c6c9ec20..01d56ddf58 100644 --- a/libs/ardour/solo_safe_control.cc +++ b/libs/ardour/solo_safe_control.cc @@ -66,8 +66,12 @@ SoloSafeControl::get_value () const } int -SoloSafeControl::set_state (XMLNode const & node, int) +SoloSafeControl::set_state (XMLNode const & node, int version) { + if (SlavableAutomationControl::set_state(node, version)) { + return -1; + } + XMLProperty const * prop; if ((prop = node.property ("solo-safe")) != 0) { -- 2.30.2