From 4ed910748c422956ff915818a5506cfb90316106 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 28 Oct 2014 16:43:45 +0100 Subject: [PATCH] don't show x-fade menu when right-clicking on frame handles Fix crash with midi-regions (they have a frame-handle but no x-fade). fixes 2nd part of #5992 (backtrace 20141021-B) This is nicer in one way: When the cursor is "trim" the x-fade context menu is no longer accessible. And a bit worse: The x-fade context menu is only accessible on the small fade-handles (boxes) and on the x-fade itself. --- gtk2_ardour/editor_mouse.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gtk2_ardour/editor_mouse.cc b/gtk2_ardour/editor_mouse.cc index 621319dfb6..c4e19b15a8 100644 --- a/gtk2_ardour/editor_mouse.cc +++ b/gtk2_ardour/editor_mouse.cc @@ -1393,7 +1393,6 @@ Editor::button_release_handler (ArdourCanvas::Item* item, GdkEvent* event, ItemT case FadeInHandleItem: case FadeInTrimHandleItem: case StartCrossFadeItem: - case LeftFrameHandle: popup_xfade_in_context_menu (1, event->button.time, item, item_type); break; @@ -1401,10 +1400,13 @@ Editor::button_release_handler (ArdourCanvas::Item* item, GdkEvent* event, ItemT case FadeOutHandleItem: case FadeOutTrimHandleItem: case EndCrossFadeItem: - case RightFrameHandle: popup_xfade_out_context_menu (1, event->button.time, item, item_type); break; + case LeftFrameHandle: + case RightFrameHandle: + break; + case StreamItem: popup_track_context_menu (1, event->button.time, item_type, false); break;