partially revert 218fb. TODO: menu actions need to operate on the clicked section

This commit is contained in:
Ben Loftis 2023-09-12 08:40:07 -05:00
parent 218fbda6e7
commit 94b7ed8d4c
1 changed files with 3 additions and 1 deletions

View File

@ -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;
}