13
0

no need to lookup smart mode action, it is cached

This commit is contained in:
Paul Davis 2024-05-18 12:24:23 -06:00
parent 6ed9835677
commit f1e7ab08c7

View File

@ -2575,10 +2575,9 @@ Editor::set_state (const XMLNode& node, int version)
yn = false; yn = false;
node.get_property ("join-object-range", yn); node.get_property ("join-object-range", yn);
{ {
RefPtr<ToggleAction> tact = ActionManager::get_toggle_action (X_("MouseMode"), X_("set-mouse-mode-object-range"));
/* do it twice to force the change */ /* do it twice to force the change */
tact->set_active (!yn); smart_mode_action->set_active (!yn);
tact->set_active (yn); smart_mode_action->set_active (yn);
set_mouse_mode (mouse_mode, true); set_mouse_mode (mouse_mode, true);
} }