From: Paul Davis Date: Tue, 10 Nov 2009 18:19:11 +0000 (+0000) Subject: disable recording when stopping even if we where looping, unless latched rec-enable... X-Git-Tag: 2.8.16~627 X-Git-Url: https://main.carlh.net/gitweb/?a=commitdiff_plain;h=b03aa778501d3b3cb476bc6f6a24346d494259bf;p=ardour.git 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 --- 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 ();