From f1e7ab08c7062422b31acad4d1f238ea07fe9b76 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sat, 18 May 2024 12:24:23 -0600 Subject: [PATCH] no need to lookup smart mode action, it is cached --- gtk2_ardour/editor.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/gtk2_ardour/editor.cc b/gtk2_ardour/editor.cc index d8e968b2cb..69e5078a66 100644 --- a/gtk2_ardour/editor.cc +++ b/gtk2_ardour/editor.cc @@ -2575,11 +2575,10 @@ Editor::set_state (const XMLNode& node, int version) yn = false; node.get_property ("join-object-range", yn); { - RefPtr tact = ActionManager::get_toggle_action (X_("MouseMode"), X_("set-mouse-mode-object-range")); /* do it twice to force the change */ - tact->set_active (!yn); - tact->set_active (yn); - set_mouse_mode(mouse_mode, true); + smart_mode_action->set_active (!yn); + smart_mode_action->set_active (yn); + set_mouse_mode (mouse_mode, true); } EditPoint ep;