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