mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
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:
parent
b5478a8a2b
commit
1b3b9633b0
1 changed files with 1 additions and 0 deletions
|
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue