summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2009-11-10 18:19:11 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2009-11-10 18:19:11 +0000
commitb03aa778501d3b3cb476bc6f6a24346d494259bf (patch)
tree98e99619c436c56beaa52954893e14e27707b0b3 /libs
parent23d5e052f303e21a7eb57de8fa29b4e680e6c854 (diff)
disable recording when stopping even if we where looping, unless latched rec-enable is in use
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@6054 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs')
-rw-r--r--libs/ardour/session_transport.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/ardour/session_transport.cc b/libs/ardour/session_transport.cc
index 462f334182..23d7ab8f67 100644
--- a/libs/ardour/session_transport.cc
+++ b/libs/ardour/session_transport.cc
@@ -196,7 +196,9 @@ Session::realtime_stop (bool abort, bool clear_state)
_clear_event_type (Event::RangeStop);
_clear_event_type (Event::RangeLocate);
- disable_record (true);
+ /* if we're going to clear loop state, then force disabling record BUT only if we're not doing latched rec-enable */
+
+ disable_record (true, (!Config->get_latched_record_enable() && clear_state));
reset_slave_state ();