From 0d9030cee18b332206650df68428637dd159c3b2 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 25 Nov 2016 11:50:39 +0000 Subject: make the session do the right thing when clearing solo state during non-loading conditions --- libs/ardour/session.cc | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc index 3bf61cac26..f9a6169363 100644 --- a/libs/ardour/session.cc +++ b/libs/ardour/session.cc @@ -6230,14 +6230,18 @@ void Session::solo_control_mode_changed () { if (soloing() || listening()) { - /* We can't use ::clear_all_solo_state() here because during - session loading at program startup, that will queue a call - to rt_clear_all_solo_state() that will not execute until - AFTER solo states have been established (thus throwing away - 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); + if (loading()) { + /* We can't use ::clear_all_solo_state() here because during + session loading at program startup, that will queue a call + to rt_clear_all_solo_state() that will not execute until + AFTER solo states have been established (thus throwing away + 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); + } else { + clear_all_solo_state (get_routes()); + } } } -- cgit v1.2.3