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:
parent
d3229b548b
commit
5b5c576286
@ -1534,10 +1534,7 @@ Editor::build_track_region_context_menu ()
|
|||||||
boost::shared_ptr<Track> tr;
|
boost::shared_ptr<Track> tr;
|
||||||
boost::shared_ptr<Playlist> pl;
|
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
|
if ((tr = rtv->track()) && ((pl = tr->playlist()))) {
|
||||||
mode and so offering region context is somewhat confusing.
|
|
||||||
*/
|
|
||||||
if ((tr = rtv->track()) && ((pl = tr->playlist())) && !internal_editing()) {
|
|
||||||
framepos_t const framepos = (framepos_t) floor ((double) get_preferred_edit_position() * tr->speed());
|
framepos_t const framepos = (framepos_t) floor ((double) get_preferred_edit_position() * tr->speed());
|
||||||
uint32_t regions_at = pl->count_regions_at (framepos);
|
uint32_t regions_at = pl->count_regions_at (framepos);
|
||||||
add_region_context_items (edit_items, regions_at > 1);
|
add_region_context_items (edit_items, regions_at > 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user