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:
parent
c0a28fca09
commit
4ed910748c
@ -1393,7 +1393,6 @@ Editor::button_release_handler (ArdourCanvas::Item* item, GdkEvent* event, ItemT
|
|||||||
case FadeInHandleItem:
|
case FadeInHandleItem:
|
||||||
case FadeInTrimHandleItem:
|
case FadeInTrimHandleItem:
|
||||||
case StartCrossFadeItem:
|
case StartCrossFadeItem:
|
||||||
case LeftFrameHandle:
|
|
||||||
popup_xfade_in_context_menu (1, event->button.time, item, item_type);
|
popup_xfade_in_context_menu (1, event->button.time, item, item_type);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -1401,10 +1400,13 @@ Editor::button_release_handler (ArdourCanvas::Item* item, GdkEvent* event, ItemT
|
|||||||
case FadeOutHandleItem:
|
case FadeOutHandleItem:
|
||||||
case FadeOutTrimHandleItem:
|
case FadeOutTrimHandleItem:
|
||||||
case EndCrossFadeItem:
|
case EndCrossFadeItem:
|
||||||
case RightFrameHandle:
|
|
||||||
popup_xfade_out_context_menu (1, event->button.time, item, item_type);
|
popup_xfade_out_context_menu (1, event->button.time, item, item_type);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case LeftFrameHandle:
|
||||||
|
case RightFrameHandle:
|
||||||
|
break;
|
||||||
|
|
||||||
case StreamItem:
|
case StreamItem:
|
||||||
popup_track_context_menu (1, event->button.time, item_type, false);
|
popup_track_context_menu (1, event->button.time, item_type, false);
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user