From 441eaebd92f815dd5bc304e3788e2fd0310667d8 Mon Sep 17 00:00:00 2001 From: Tim Mayberry Date: Tue, 20 Sep 2016 15:44:38 +1000 Subject: Restore ARDOUR::MuteControl state, fixes bug #7025 This should be the final 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. I'm assuming this was a typo, comparing with the wrong name meant the state of the MuteControl was never being restored. This also fixes restoring bindings associated MuteControl instances. --- libs/ardour/route.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc index 33a6c13080..3d34b92d2c 100644 --- a/libs/ardour/route.cc +++ b/libs/ardour/route.cc @@ -2460,7 +2460,7 @@ Route::set_state (const XMLNode& node, int version) _solo_safe_control->set_state (*child, version); } else if (prop->value() == _solo_isolate_control->name()) { _solo_isolate_control->set_state (*child, version); - } else if (prop->value() == _solo_control->name()) { + } else if (prop->value() == _mute_control->name()) { _mute_control->set_state (*child, version); } else if (prop->value() == _phase_control->name()) { _phase_control->set_state (*child, version); -- cgit v1.2.3