diff options
author | Robin Gareus <robin@gareus.org> | 2017-07-21 13:01:43 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-07-21 13:01:43 +0200 |
commit | 8400ebd175e0b2db632ea45b1943dc646dfe97c4 (patch) | |
tree | d385ca3ffe1378e7975ac376af6a36397d1fd9e4 /gtk2_ardour | |
parent | c242cbc31806f6423d5a033f28a102d555166b2b (diff) |
Amend c242cbc31806 (VCA automation button)
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/automation_time_axis.cc | 1 | ||||
-rw-r--r-- | gtk2_ardour/gain_meter.cc | 7 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gtk2_ardour/automation_time_axis.cc b/gtk2_ardour/automation_time_axis.cc index 9cc7e291a5..39a312da4b 100644 --- a/gtk2_ardour/automation_time_axis.cc +++ b/gtk2_ardour/automation_time_axis.cc @@ -335,6 +335,7 @@ AutomationTimeAxisView::set_automation_state (AutoState state) } else if (_control) { _control->set_automation_state (state); + _session->set_dirty (); } if (_view) { diff --git a/gtk2_ardour/gain_meter.cc b/gtk2_ardour/gain_meter.cc index 9a4ed70084..ab90de8862 100644 --- a/gtk2_ardour/gain_meter.cc +++ b/gtk2_ardour/gain_meter.cc @@ -292,7 +292,12 @@ GainMeterBase::set_gain_astate (AutoState as) ChangeGainAutomationState (as); return; } - _amp->set_parameter_automation_state (Evoral::Parameter (GainAutomation), as); + if (_amp) { + _amp->set_parameter_automation_state (Evoral::Parameter (GainAutomation), as); + } else if (_control) { + _control->set_automation_state (as); + _session->set_dirty (); + } } void |