AutomationList::set_automation_state () only needs a memento for toggled.

This commit is contained in:
nick_m 2015-11-03 04:18:09 +11:00
parent 66f39ddcd0
commit 3b0f068fe9

View 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 */