13
0

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.
This commit is contained in:
Robin Gareus 2014-10-28 16:43:45 +01:00
parent c0a28fca09
commit 4ed910748c

View File

@ -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;