From 9630d83573760a8b19b885b868ce3fa26c297849 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 28 Jan 2015 21:52:54 -0500 Subject: [PATCH] playhead priority: if rolling and range selection vanishes while we are paying attention, ignore the change --- libs/ardour/session_transport.cc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/libs/ardour/session_transport.cc b/libs/ardour/session_transport.cc index e12a05fef0..9155d7fb16 100644 --- a/libs/ardour/session_transport.cc +++ b/libs/ardour/session_transport.cc @@ -481,7 +481,15 @@ Session::select_playhead_priority_target (framepos_t& jump_to) if (jump_to < 0 && (autoreturn & RangeSelectionStart)) { if (!_range_selection.empty()) { jump_to = _range_selection.from; - } + } else { + if (transport_rolling()) { + /* Range selection no longer exists, but we're playing, + so do nothing. Next stop will put us where + we need to be. + */ + return false; + } + } } if (jump_to < 0 && (autoreturn & Loop)) {