don't display range selection when track selection changes and we're not in the right...
authorPaul Davis <paul@linuxaudiosystems.com>
Mon, 30 Aug 2010 18:59:02 +0000 (18:59 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Mon, 30 Aug 2010 18:59:02 +0000 (18:59 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@7717 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/editor_selection.cc

index 1ee275955e758fb0f2fb0f49e8670e3782e14a45..893adf0262b58c29b8cbb775c83bcc23c442f531 100644 (file)
@@ -893,7 +893,9 @@ Editor::track_selection_changed ()
                         (*j)->set_selected (find (selection->tracks.begin(), selection->tracks.end(), j->get()) != selection->tracks.end());
                 }
 
-                if (yn) {
+                if (yn && 
+                    ((mouse_mode == MouseRange) || 
+                     ((mouse_mode == MouseObject) && (_join_object_range_state == JOIN_OBJECT_RANGE_OBJECT)))) {
                         (*i)->reshow_selection (selection->time);
                 } else {
                         (*i)->hide_selection ();