summaryrefslogtreecommitdiff
path: root/gtk2_ardour/utils.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2018-12-19 16:44:35 -0500
committerPaul Davis <paul@linuxaudiosystems.com>2018-12-19 17:19:51 -0500
commit3a215271b516404badab04cd22384c8963ab3c9b (patch)
tree5ba43753a8ebeb761bb9a2a97b0db92a9a00cdd0 /gtk2_ardour/utils.cc
parent55bc0eec91534540a35289470cdf8a43fbc60f60 (diff)
cast_dynamic<> => get_toggle_action()
Diffstat (limited to 'gtk2_ardour/utils.cc')
-rw-r--r--gtk2_ardour/utils.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/gtk2_ardour/utils.cc b/gtk2_ardour/utils.cc
index 5ddd044b80..a4578494d1 100644
--- a/gtk2_ardour/utils.cc
+++ b/gtk2_ardour/utils.cc
@@ -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."),