13
0

make the session do the right thing when clearing solo state during non-loading conditions

This commit is contained in:
Paul Davis 2016-11-25 11:50:39 +00:00
parent bb8ddc4322
commit 0d9030cee1

View File

@ -6230,14 +6230,18 @@ void
Session::solo_control_mode_changed () Session::solo_control_mode_changed ()
{ {
if (soloing() || listening()) { if (soloing() || listening()) {
/* We can't use ::clear_all_solo_state() here because during if (loading()) {
session loading at program startup, that will queue a call /* We can't use ::clear_all_solo_state() here because during
to rt_clear_all_solo_state() that will not execute until session loading at program startup, that will queue a call
AFTER solo states have been established (thus throwing away to rt_clear_all_solo_state() that will not execute until
the session's saved solo state). So just explicitly turn AFTER solo states have been established (thus throwing away
them all off. the session's saved solo state). So just explicitly turn
*/ them all off.
set_controls (route_list_to_control_list (get_routes(), &Stripable::solo_control), 0.0, Controllable::NoGroup); */
set_controls (route_list_to_control_list (get_routes(), &Stripable::solo_control), 0.0, Controllable::NoGroup);
} else {
clear_all_solo_state (get_routes());
}
} }
} }