From 1b3b9633b0990d7e90b9843c94a16d896c4a393e Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 11 Dec 2011 17:08:47 +0000 Subject: [PATCH] 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 --- gtk2_ardour/ardour_button.cc | 1 + 1 file changed, 1 insertion(+) 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 act) Glib::RefPtr tact = Glib::RefPtr::cast_dynamic (_action); if (tact) { + action_toggled (); tact->signal_toggled().connect (sigc::mem_fun (*this, &ArdourButton::action_toggled)); }