diff options
author | Carl Hetherington <carl@carlh.net> | 2010-08-09 22:23:23 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-08-09 22:23:23 +0000 |
commit | 78986385e17b82a6704c8792fb21a42cd86add9a (patch) | |
tree | 54bdca03098ff7e26b536b0640e3321b4b0a042e /gtk2_ardour | |
parent | 7c5f1b7a26df60417590340d4cfe367ed00e180a (diff) |
Fix save/load of MIDI automation state. Fixes #3354.
git-svn-id: svn://localhost/ardour2/branches/3.0@7578 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/automation_streamview.cc | 4 | ||||
-rw-r--r-- | gtk2_ardour/generic_pluginui.cc | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/gtk2_ardour/automation_streamview.cc b/gtk2_ardour/automation_streamview.cc index cdca5ec08f..27ee2ca086 100644 --- a/gtk2_ardour/automation_streamview.cc +++ b/gtk2_ardour/automation_streamview.cc @@ -151,9 +151,7 @@ AutomationStreamView::display_region(AutomationRegionView* region_view) void AutomationStreamView::set_automation_state (AutoState state) { - /* XXX: not sure if this is right, but for now the automation state is basically held by - the regions' AutomationLists. Each region is always set to have the same AutoState. - */ + /* Setting the automation state for this view sets the state of all regions' lists to the same thing */ if (region_views.empty()) { _pending_automation_state = state; diff --git a/gtk2_ardour/generic_pluginui.cc b/gtk2_ardour/generic_pluginui.cc index 04e753bf0c..40f8e16ef8 100644 --- a/gtk2_ardour/generic_pluginui.cc +++ b/gtk2_ardour/generic_pluginui.cc @@ -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")); |