do not call playhead priority (auto-return) code after selections change, unless doing the

Tracks playhead priority thing
This commit is contained in:
Paul Davis 2015-07-20 12:57:19 -04:00
parent a81cba17a6
commit 7198908a00

View file

@ -6158,26 +6158,34 @@ void
Session::set_range_selection (framepos_t start, framepos_t end) Session::set_range_selection (framepos_t start, framepos_t end)
{ {
_range_selection = Evoral::Range<framepos_t> (start, end); _range_selection = Evoral::Range<framepos_t> (start, end);
#ifdef USE_TRACKS_CODE_FEATURES
follow_playhead_priority (); follow_playhead_priority ();
#endif
} }
void void
Session::set_object_selection (framepos_t start, framepos_t end) Session::set_object_selection (framepos_t start, framepos_t end)
{ {
_object_selection = Evoral::Range<framepos_t> (start, end); _object_selection = Evoral::Range<framepos_t> (start, end);
#ifdef USE_TRACKS_CODE_FEATURES
follow_playhead_priority (); follow_playhead_priority ();
#endif
} }
void void
Session::clear_range_selection () Session::clear_range_selection ()
{ {
_range_selection = Evoral::Range<framepos_t> (-1,-1); _range_selection = Evoral::Range<framepos_t> (-1,-1);
#ifdef USE_TRACKS_CODE_FEATURES
follow_playhead_priority (); follow_playhead_priority ();
#endif
} }
void void
Session::clear_object_selection () Session::clear_object_selection ()
{ {
_object_selection = Evoral::Range<framepos_t> (-1,-1); _object_selection = Evoral::Range<framepos_t> (-1,-1);
#ifdef USE_TRACKS_CODE_FEATURES
follow_playhead_priority (); follow_playhead_priority ();
#endif
} }