13
0

Set up ArdourButton state to match the action when the

action is attached.  Fixes #4523.


git-svn-id: svn://localhost/ardour2/branches/3.0@10979 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2011-12-11 17:08:47 +00:00
parent b5478a8a2b
commit 1b3b9633b0

View File

@ -543,6 +543,7 @@ ArdourButton::set_related_action (RefPtr<Action> act)
Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic (_action);
if (tact) {
action_toggled ();
tact->signal_toggled().connect (sigc::mem_fun (*this, &ArdourButton::action_toggled));
}