cast_dynamic<> => get_toggle_action()

This commit is contained in:
Paul Davis 2018-12-19 16:44:35 -05:00
parent 55bc0eec91
commit 3a215271b5
1 changed files with 1 additions and 2 deletions

View File

@ -104,8 +104,7 @@ ARDOUR_UI_UTILS::just_hide_it (GdkEventAny */*ev*/, Gtk::Window *win)
static bool
idle_notify_engine_stopped ()
{
Glib::RefPtr<Action> act = ActionManager::get_action ("Window", "toggle-audio-midi-setup");
Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic(act);
Glib::RefPtr<ToggleAction> tact = ActionManager::get_toggle_action ("Window", "toggle-audio-midi-setup");
MessageDialog msg (
_("The current operation is not possible because of an error communicating with the audio hardware."),