From 94b7ed8d4c2bdc301577673d2536dcf1973e62ce Mon Sep 17 00:00:00 2001 From: Ben Loftis Date: Tue, 12 Sep 2023 08:40:07 -0500 Subject: [PATCH] partially revert 218fb. TODO: menu actions need to operate on the clicked section --- gtk2_ardour/editor_canvas_events.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gtk2_ardour/editor_canvas_events.cc b/gtk2_ardour/editor_canvas_events.cc index 494c64509c..fe9d372120 100644 --- a/gtk2_ardour/editor_canvas_events.cc +++ b/gtk2_ardour/editor_canvas_events.cc @@ -1181,9 +1181,11 @@ Editor::section_rect_event (GdkEvent* ev, Location* loc, ArdourCanvas::Rectangle items.push_back (MenuElem (_("New Arrangement Marker"), sigc::bind (sigc::mem_fun(*this, &Editor::mouse_add_new_marker), where, Location::Flags(Location::IsMark | Location::IsSection), 0))); items.push_back (MenuElem (_("Select Arrangement Section"), sigc::bind (sigc::mem_fun(*_sections, &EditorSections::select), l))); +#if 0 items.push_back (SeparatorElem()); + add_section_context_items (items); //TODO: section_context_items needs to be modified to operate on the marker you clicked on, not the range selection (which might not exist) +#endif - add_section_context_items (items); section_box_menu.popup (ev->button.button, ev->button.time); return true; }