Extending an empty selection selects the clicked region.
- fixes a crash where the first operation on loading a session is a constrained drag
This commit is contained in:
parent
0016920347
commit
2d7bdda0be
@ -879,7 +879,12 @@ Editor::set_selected_regionview_from_click (bool press, Selection::Operation op)
|
||||
if (!regions.empty()) {
|
||||
selection->add (regions);
|
||||
commit = true;
|
||||
} else if (selection->regions.empty() && !selection->selected (clicked_regionview)) {
|
||||
/* ensure that at least the clicked regionview is selected. */
|
||||
selection->set (clicked_regionview);
|
||||
commit = true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
out:
|
||||
|
Loading…
Reference in New Issue
Block a user