Fix save/load of MIDI automation state. Fixes #3354.
[ardour.git] / gtk2_ardour / generic_pluginui.cc
index 04e753bf0cee5836c17b900a817564466af9acc5..40f8e16ef89d89e838daae1a51f095a54dfcdc1d 100644 (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"));