summaryrefslogtreecommitdiffstats
path: root/editor/action_map_editor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'editor/action_map_editor.cpp')
-rw-r--r--editor/action_map_editor.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/editor/action_map_editor.cpp b/editor/action_map_editor.cpp
index bc3db3f7fa..6ff0520ab6 100644
--- a/editor/action_map_editor.cpp
+++ b/editor/action_map_editor.cpp
@@ -552,8 +552,8 @@ ActionMapEditor::ActionMapEditor() {
Button *clear_all_search = memnew(Button);
clear_all_search->set_text(TTR("Clear All"));
- clear_all_search->connect("pressed", callable_mp(action_list_search_by_event, &EventListenerLineEdit::clear_event));
- clear_all_search->connect("pressed", callable_mp(action_list_search, &LineEdit::clear));
+ clear_all_search->connect(SceneStringName(pressed), callable_mp(action_list_search_by_event, &EventListenerLineEdit::clear_event));
+ clear_all_search->connect(SceneStringName(pressed), callable_mp(action_list_search, &LineEdit::clear));
top_hbox->add_child(clear_all_search);
// Adding Action line edit + button
@@ -570,7 +570,7 @@ ActionMapEditor::ActionMapEditor() {
add_button = memnew(Button);
add_button->set_text(TTR("Add"));
- add_button->connect("pressed", callable_mp(this, &ActionMapEditor::_add_action_pressed));
+ add_button->connect(SceneStringName(pressed), callable_mp(this, &ActionMapEditor::_add_action_pressed));
add_hbox->add_child(add_button);
// Disable the button and set its tooltip.
_add_edit_text_changed(add_edit->get_text());