switch to WM::Proxy Action management
authorRobin Gareus <robin@gareus.org>
Sun, 14 Jul 2013 16:34:36 +0000 (18:34 +0200)
committerPaul Davis <paul@linuxaudiosystems.com>
Thu, 8 Aug 2013 19:23:08 +0000 (15:23 -0400)
fixes http://tracker.ardour.org/view.php?id=5584

gtk2_ardour/ardour_ui2.cc

index 5a64e5314091bc9494b7fbc13a73fc11c52ebfcb..50affa6c960524a4940a473da5a6246037fcc16b 100644 (file)
@@ -617,11 +617,10 @@ ARDOUR_UI::click_button_clicked (GdkEventButton* ev)
                return false;
        }
 
-       RefPtr<Action> act = ActionManager::get_action (X_("Common"), X_("ToggleRCOptionsEditor"));
+       RefPtr<Action> act = ActionManager::get_action (X_("Window"), X_("toggle-rc-options-editor"));
        assert (act);
 
-       RefPtr<ToggleAction> tact = RefPtr<ToggleAction>::cast_dynamic (act);
-       tact->set_active ();
+       act->activate();
 
        rc_option_editor->set_current_page (_("Misc"));
        return true;