diff options
author | Carl Hetherington <carl@carlh.net> | 2011-12-11 17:08:47 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2011-12-11 17:08:47 +0000 |
commit | 1b3b9633b0990d7e90b9843c94a16d896c4a393e (patch) | |
tree | 79073739d84af634f672e95057dc8ac84cdffb8f | |
parent | b5478a8a2b09793fe94c2a8836daec2b8f24f0a5 (diff) |
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
-rw-r--r-- | gtk2_ardour/ardour_button.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk2_ardour/ardour_button.cc b/gtk2_ardour/ardour_button.cc index 778be28f20..4689b912f3 100644 --- a/gtk2_ardour/ardour_button.cc +++ b/gtk2_ardour/ardour_button.cc @@ -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)); } |