13
0

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.
This commit is contained in:
Tim Mayberry 2016-09-20 15:44:38 +10:00
parent 3797d8c2f1
commit 441eaebd92

View File

@ -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);