AutomationList::set_automation_state () only needs a memento for toggled.
authornick_m <mainsbridge@gmail.com>
Mon, 2 Nov 2015 17:18:09 +0000 (04:18 +1100)
committernick_m <mainsbridge@gmail.com>
Mon, 2 Nov 2015 17:18:09 +0000 (04:18 +1100)
libs/ardour/automation_list.cc

index 0651d018f3e0aa1548ba3f7c782b26a5ccccdd40..bc8ca8e6425863beb45d6cf6289a7d6047e1f736 100644 (file)
@@ -191,7 +191,7 @@ AutomationList::set_automation_state (AutoState s)
 {
        if (s != _state) {
                _state = s;
-               if (s == Write) {
+               if (s == Write && _desc.toggled) {
                        _before = &get_state ();
                }
                automation_state_changed (s); /* EMIT SIGNAL */