fix initial display of solo-model in monitor section

git-svn-id: svn://localhost/ardour2/branches/3.0@10433 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2011-11-04 02:46:59 +00:00
parent b81591ab16
commit cad92bfa4e

View File

@ -93,12 +93,6 @@ MonitorSection::MonitorSection (Session* s)
afl_button.set_name ("monitor section solo model");
pfl_button.set_name ("monitor section solo model");
#if 0
solo_model_group.add (solo_in_place_button);
solo_model_group.add (afl_button);
solo_model_group.add (afl_button);
#endif
solo_model_box.set_spacing (6);
solo_model_box.pack_start (solo_in_place_button, true, false);
solo_model_box.pack_start (afl_button, true, false);
@ -846,10 +840,19 @@ MonitorSection::update_solo_model ()
act = ActionManager::get_action (X_("Solo"), action_name);
if (act) {
Glib::RefPtr<RadioAction> ract = Glib::RefPtr<RadioAction>::cast_dynamic (act);
if (ract) {
/* because these are radio buttons, one of them will be
active no matter what. to trigger a change in the
action so that the view picks it up, toggle it.
*/
if (ract->get_active()) {
ract->set_active (false);
}
ract->set_active (true);
}
}
}