summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHein-Pieter van Braam <hp@tmm.cx>2018-08-05 22:22:16 +0200
committerHein-Pieter van Braam <hp@tmm.cx>2018-08-05 22:22:16 +0200
commit7db66fea393f066e52aab66ff11d552cb2be97dd (patch)
treec5bc4eef3b9d11340cc90f0eaab0e6a0dc287ff3
parentd5d83b754d1d3f73e6c5d02671fef32aaeac5a40 (diff)
Do not call _update_actions when only changing deadzone
Because changing the deadzone with a click happens during _propagate_mouse_event the tree is always blocked leading to a crash. We don't actually need to update actions here anyway. This fixes #20184
-rw-r--r--editor/project_settings_editor.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/editor/project_settings_editor.cpp b/editor/project_settings_editor.cpp
index 2b2e03ce38..42fde9c16e 100644
--- a/editor/project_settings_editor.cpp
+++ b/editor/project_settings_editor.cpp
@@ -213,10 +213,8 @@ void ProjectSettingsEditor::_action_edited() {
undo_redo->create_action(TTR("Change Action deadzone"));
undo_redo->add_do_method(ProjectSettings::get_singleton(), "set", name, new_action);
- undo_redo->add_do_method(this, "_update_actions");
undo_redo->add_do_method(this, "_settings_changed");
undo_redo->add_undo_method(ProjectSettings::get_singleton(), "set", name, old_action);
- undo_redo->add_undo_method(this, "_update_actions");
undo_redo->add_undo_method(this, "_settings_changed");
undo_redo->commit_action();
}