From 4a9971ad83ab10dff02e2515620c823f35532246 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 23 Apr 2010 02:06:07 +0000 Subject: [PATCH] When a track context menu is opened, select the track it was opened in (only). Should fix #3078. git-svn-id: svn://localhost/ardour2/branches/3.0@6971 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/editor_mouse.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gtk2_ardour/editor_mouse.cc b/gtk2_ardour/editor_mouse.cc index 479ffd9933..9fcf988353 100644 --- a/gtk2_ardour/editor_mouse.cc +++ b/gtk2_ardour/editor_mouse.cc @@ -499,7 +499,8 @@ Editor::button_selection (ArdourCanvas::Item* /*item*/, GdkEvent* event, ItemTyp case StreamItem: /* for context click, select track */ if (event->button.button == 3) { - set_selected_track_as_side_effect (); + selection->clear_tracks (); + set_selected_track_as_side_effect (true); } break;