13
0

Re-offer region context menu even when in note mode, as selections made out of note mode are now preserved again.

git-svn-id: svn://localhost/ardour2/branches/3.0@8612 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2011-01-29 19:01:49 +00:00
parent d3229b548b
commit 5b5c576286

View File

@ -1534,10 +1534,7 @@ Editor::build_track_region_context_menu ()
boost::shared_ptr<Track> tr;
boost::shared_ptr<Playlist> pl;
/* Don't offer a region submenu if we are in internal edit mode, as we don't select regions in this
mode and so offering region context is somewhat confusing.
*/
if ((tr = rtv->track()) && ((pl = tr->playlist())) && !internal_editing()) {
if ((tr = rtv->track()) && ((pl = tr->playlist()))) {
framepos_t const framepos = (framepos_t) floor ((double) get_preferred_edit_position() * tr->speed());
uint32_t regions_at = pl->count_regions_at (framepos);
add_region_context_items (edit_items, regions_at > 1);