disable recording when stopping even if we where looping, unless latched rec-enable...
authorPaul Davis <paul@linuxaudiosystems.com>
Tue, 10 Nov 2009 18:19:11 +0000 (18:19 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Tue, 10 Nov 2009 18:19:11 +0000 (18:19 +0000)
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@6054 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/session_transport.cc

index 462f33418238c960f6520fc18ae6c2b6d729d73d..23d7ab8f673d9f3a5d2659b0d8a0697ce4a2902f 100644 (file)
@@ -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 ();