13
0

fix crash when context-clicking on a region/source cue marker

This commit is contained in:
Paul Davis 2021-06-27 22:13:54 -06:00
parent fe6e3615c7
commit 537b8ff12d

View File

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