From 5365ea6c3f8f063725dabbdfd3be8453f06e4651 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 8 Feb 2007 16:43:33 +0000 Subject: [PATCH] select track in range mode even on region & related objects git-svn-id: svn://localhost/ardour2/trunk@1432 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/editor_mouse.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gtk2_ardour/editor_mouse.cc b/gtk2_ardour/editor_mouse.cc index 10f4c0eb03..d502ee0c40 100644 --- a/gtk2_ardour/editor_mouse.cc +++ b/gtk2_ardour/editor_mouse.cc @@ -328,6 +328,8 @@ Editor::button_selection (ArdourCanvas::Item* item, GdkEvent* event, ItemType it case RegionItem: if (mouse_mode != MouseRange) { commit = set_selected_regionview_from_click (press, op, true); + } else if (event->type == GDK_BUTTON_PRESS) { + commit = set_selected_track_from_click (press, op, false); } break; @@ -335,6 +337,8 @@ Editor::button_selection (ArdourCanvas::Item* item, GdkEvent* event, ItemType it case RegionViewName: if (mouse_mode != MouseRange) { commit = set_selected_regionview_from_click (press, op, true); + } else if (event->type == GDK_BUTTON_PRESS) { + commit = set_selected_track_from_click (press, op, false); } break; @@ -344,6 +348,8 @@ Editor::button_selection (ArdourCanvas::Item* item, GdkEvent* event, ItemType it case FadeOutItem: if (mouse_mode != MouseRange) { commit = set_selected_regionview_from_click (press, op, true); + } else if (event->type == GDK_BUTTON_PRESS) { + commit = set_selected_track_from_click (press, op, false); } break;