Amend c242cbc31806 (VCA automation button)
authorRobin Gareus <robin@gareus.org>
Fri, 21 Jul 2017 11:01:43 +0000 (13:01 +0200)
committerRobin Gareus <robin@gareus.org>
Fri, 21 Jul 2017 11:01:43 +0000 (13:01 +0200)
gtk2_ardour/automation_time_axis.cc
gtk2_ardour/gain_meter.cc

index 9cc7e291a541be8642b5c1a0feaafbadfe6c00c6..39a312da4b0edaf19fcd29959004b77b6a1d89bd 100644 (file)
@@ -335,6 +335,7 @@ AutomationTimeAxisView::set_automation_state (AutoState state)
        }
        else if (_control) {
                _control->set_automation_state (state);
+               _session->set_dirty ();
        }
 
        if (_view) {
index 9a4ed70084b72bd2cf1b03e92f2e1055cce5d50a..ab90de88628897c6cb3ae6304f659d1c8b841cf2 100644 (file)
@@ -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