action is attached. Fixes #4523.
git-svn-id: svn://localhost/ardour2/branches/3.0@10979
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic (_action);
if (tact) {
Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic (_action);
if (tact) {
tact->signal_toggled().connect (sigc::mem_fun (*this, &ArdourButton::action_toggled));
}
tact->signal_toggled().connect (sigc::mem_fun (*this, &ArdourButton::action_toggled));
}