mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-03 12:19:33 +01:00
fix logic for context-menu-mouse-dependent actions so that if the edit point is not the mouse, we still use the edit point even from the context menu. klar?
git-svn-id: svn://localhost/ardour2/branches/3.0@11117 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
42aea0b9fd
commit
6df1d06f8b
2 changed files with 5 additions and 4 deletions
|
|
@ -4558,13 +4558,14 @@ void
|
|||
Editor::insert_patch_change (bool from_context)
|
||||
{
|
||||
RegionSelection rs = get_regions_from_selection_and_entered ();
|
||||
|
||||
if (rs.empty ()) {
|
||||
return;
|
||||
}
|
||||
|
||||
framepos_t p;
|
||||
|
||||
if (!from_context) {
|
||||
if (!from_context || (_edit_point != EditAtMouse)) {
|
||||
p = get_preferred_edit_position (false);
|
||||
} else {
|
||||
p = event_frame (&context_click_event, 0, 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue