summaryrefslogtreecommitdiff
path: root/libs/ardour/automation_control.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2019-11-13 22:14:19 +0100
committerRobin Gareus <robin@gareus.org>2019-11-13 22:15:46 +0100
commit4c9da045841ad8ee529ab222cc3fffd5b85edda6 (patch)
treef9969fd155e6ffff02ed2d084b9f60ca5dbd92cd /libs/ardour/automation_control.cc
parentdbd327e6929086c39052396c02dcb03499b1c0ee (diff)
Amend previous commit - latch toggles only while rolling
Diffstat (limited to 'libs/ardour/automation_control.cc')
-rw-r--r--libs/ardour/automation_control.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/automation_control.cc b/libs/ardour/automation_control.cc
index eb57ecbdb3..687f03f4f0 100644
--- a/libs/ardour/automation_control.cc
+++ b/libs/ardour/automation_control.cc
@@ -304,7 +304,7 @@ AutomationControl::stop_touch (double when)
if (alist()->automation_state() == Latch && _session.transport_rolling ()) {
return;
}
- if (alist()->automation_state() == Touch && _desc.toggled) {
+ if (alist()->automation_state() == Touch && _session.transport_rolling () && _desc.toggled) {
/* Toggle buttons always latch */
return;
}