diff options
author | Tim Mayberry <mojofunk@gmail.com> | 2016-09-20 15:39:10 +1000 |
---|---|---|
committer | Tim Mayberry <mojofunk@gmail.com> | 2016-09-20 15:52:31 +1000 |
commit | 3797d8c2f16c67b75972e2f84718ea6b2b64c9de (patch) | |
tree | 00f3bba284460f03db1f498f92c705f85fbb58f2 /libs/ardour/solo_safe_control.cc | |
parent | 359e63fbe8e55ba0d8fdece9b41d620bdefd1ff6 (diff) |
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.
Diffstat (limited to 'libs/ardour/solo_safe_control.cc')
-rw-r--r-- | libs/ardour/solo_safe_control.cc | 6 |
1 files changed, 5 insertions, 1 deletions
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) { |