Region selection cannot change without a session
Without a session, there are no regions. Besides, there is an unconditional call using _session directly after the if (_session) clause, which would segfault...
This commit is contained in:
parent
37d51037b9
commit
2920bd0253
@ -1578,14 +1578,13 @@ Editor::region_selection_changed ()
|
||||
sensitize_the_right_region_actions (false);
|
||||
|
||||
/* propagate into backend */
|
||||
assert (_session);
|
||||
|
||||
if (_session) {
|
||||
if (!selection->regions.empty()) {
|
||||
_session->set_object_selection (selection->regions.start(), selection->regions.end_sample());
|
||||
} else {
|
||||
_session->clear_object_selection ();
|
||||
}
|
||||
}
|
||||
|
||||
if (_session->solo_selection_active()) {
|
||||
play_solo_selection(false);
|
||||
|
Loading…
Reference in New Issue
Block a user