mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-18 20:56:28 +01:00
fix mouse-audition playback of a given region
This commit is contained in:
parent
7a0427201c
commit
48886565cf
1 changed files with 8 additions and 1 deletions
|
|
@ -1634,8 +1634,15 @@ Editor::region_selection_changed ()
|
||||||
//if regions are selected, we must always force the mouse mode to Object...
|
//if regions are selected, we must always force the mouse mode to Object...
|
||||||
//... otherwise the user is confusingly left with selected regions that can't be manipulated.
|
//... otherwise the user is confusingly left with selected regions that can't be manipulated.
|
||||||
if (!selection->regions.empty() && !internal_editing()) {
|
if (!selection->regions.empty() && !internal_editing()) {
|
||||||
|
|
||||||
|
/* if in MouseAudition and there's just 1 region selected
|
||||||
|
* (i.e. we just clicked on it), leave things as they are
|
||||||
|
*/
|
||||||
|
|
||||||
|
if (selection->regions.size() > 1 || mouse_mode != Editing::MouseAudition) {
|
||||||
set_mouse_mode (MouseObject, false);
|
set_mouse_mode (MouseObject, false);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue