Fix save/load of MIDI automation state. Fixes #3354.

git-svn-id: svn://localhost/ardour2/branches/3.0@7578 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2010-08-09 22:23:23 +00:00
parent 7c5f1b7a26
commit 78986385e1
14 changed files with 136 additions and 49 deletions

View file

@ -346,7 +346,7 @@ GenericPluginUI::automation_state_changed (ControlUI* cui)
// don't lock to avoid deadlock because we're triggered by
// AutomationControl::Changed() while the automation lock is taken
switch (insert->get_parameter_automation_state (cui->parameter(), false)
switch (insert->get_parameter_automation_state (cui->parameter())
& (Off|Play|Touch|Write)) {
case Off:
cui->automate_button.set_label (_("Manual"));