From 537b8ff12dcc1ffa756e9d45792834cae742d639 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sun, 27 Jun 2021 22:13:54 -0600 Subject: [PATCH] fix crash when context-clicking on a region/source cue marker --- gtk2_ardour/editor_markers.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gtk2_ardour/editor_markers.cc b/gtk2_ardour/editor_markers.cc index 66ec9b6b8f..60090ee81a 100644 --- a/gtk2_ardour/editor_markers.cc +++ b/gtk2_ardour/editor_markers.cc @@ -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());