do not call playhead priority (auto-return) code after selections change, unless...
authorPaul Davis <paul@linuxaudiosystems.com>
Mon, 20 Jul 2015 16:57:19 +0000 (12:57 -0400)
committerPaul Davis <paul@linuxaudiosystems.com>
Mon, 20 Jul 2015 16:57:19 +0000 (12:57 -0400)
Tracks playhead priority thing

libs/ardour/session.cc

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