summaryrefslogtreecommitdiff
path: root/libs/ardour/track.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-05-24 21:31:10 +0200
committerRobin Gareus <robin@gareus.org>2016-05-24 21:31:10 +0200
commitcab6ae71372ef8d052518f4786cc5a7ea78974ad (patch)
tree1a8928723919beb2298960dce41650ac26e90594 /libs/ardour/track.cc
parentac7df69b490af356ee501f427b508d4ef284f754 (diff)
backend check for rec-safe (only allow to lock if not armed)
Diffstat (limited to 'libs/ardour/track.cc')
-rw-r--r--libs/ardour/track.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/ardour/track.cc b/libs/ardour/track.cc
index ac9b616ffb..414f545f72 100644
--- a/libs/ardour/track.cc
+++ b/libs/ardour/track.cc
@@ -332,6 +332,10 @@ Track::set_record_safe (bool yn, Controllable::GroupControlDisposition group_ove
return;
}
+ if (record_enabled ()) {
+ return;
+ }
+
if (use_group (group_override, &RouteGroup::is_recenable)) {
_route_group->apply (&Track::set_record_safe, yn, Controllable::NoGroup);
return;