summaryrefslogtreecommitdiffstats
path: root/editor/import_defaults_editor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'editor/import_defaults_editor.cpp')
-rw-r--r--editor/import_defaults_editor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/import_defaults_editor.cpp b/editor/import_defaults_editor.cpp
index 968f2a8915..ab7988109f 100644
--- a/editor/import_defaults_editor.cpp
+++ b/editor/import_defaults_editor.cpp
@@ -211,7 +211,7 @@ ImportDefaultsEditor::ImportDefaultsEditor() {
reset_defaults = memnew(Button);
reset_defaults->set_text(TTR("Reset to Defaults"));
reset_defaults->set_disabled(true);
- reset_defaults->connect("pressed", callable_mp(this, &ImportDefaultsEditor::_reset));
+ reset_defaults->connect(SceneStringName(pressed), callable_mp(this, &ImportDefaultsEditor::_reset));
hb->add_child(reset_defaults);
add_child(hb);
@@ -225,7 +225,7 @@ ImportDefaultsEditor::ImportDefaultsEditor() {
CenterContainer *cc = memnew(CenterContainer);
save_defaults = memnew(Button);
save_defaults->set_text(TTR("Save"));
- save_defaults->connect("pressed", callable_mp(this, &ImportDefaultsEditor::_save));
+ save_defaults->connect(SceneStringName(pressed), callable_mp(this, &ImportDefaultsEditor::_save));
cc->add_child(save_defaults);
add_child(cc);