From 359e63fbe8e55ba0d8fdece9b41d620bdefd1ff6 Mon Sep 17 00:00:00 2001 From: Tim Mayberry Date: Tue, 20 Sep 2016 15:37:00 +1000 Subject: [PATCH] Fully restore ARDOUR::SoloIsolateControl 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_isolate_control.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libs/ardour/solo_isolate_control.cc b/libs/ardour/solo_isolate_control.cc index 3be57dc23d..7964f7eb66 100644 --- a/libs/ardour/solo_isolate_control.cc +++ b/libs/ardour/solo_isolate_control.cc @@ -154,8 +154,12 @@ SoloIsolateControl::get_value () const } int -SoloIsolateControl::set_state (XMLNode const & node, int) +SoloIsolateControl::set_state (XMLNode const & node, int version) { + if (SlavableAutomationControl::set_state(node, version)) { + return -1; + } + XMLProperty const * prop; if ((prop = node.property ("solo-isolated")) != 0) {