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:
nick_m 2016-08-20 01:34:53 +10:00
parent 0016920347
commit 2d7bdda0be

View File

@ -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: