fix crash when context-clicking on a region/source cue marker
This commit is contained in:
parent
fe6e3615c7
commit
537b8ff12d
@ -885,9 +885,15 @@ Editor::marker_context_menu (GdkEventButton* ev, ArdourCanvas::Item* item)
|
||||
abort(); /*NOTREACHED*/
|
||||
}
|
||||
|
||||
if (marker->type() == ArdourMarker::RegionCue) {
|
||||
/* no context menu for these puppies */
|
||||
return;
|
||||
}
|
||||
|
||||
bool is_start;
|
||||
Location * loc = find_location_from_marker (marker, is_start);
|
||||
|
||||
|
||||
if (loc == transport_loop_location() || loc == transport_punch_location() || loc->is_session_range ()) {
|
||||
|
||||
build_range_marker_menu (loc, loc == transport_loop_location() || loc == transport_punch_location(), loc->is_session_range());
|
||||
|
Loading…
Reference in New Issue
Block a user