summaryrefslogtreecommitdiffstats
path: root/editor/editor_data.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'editor/editor_data.cpp')
-rw-r--r--editor/editor_data.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/editor_data.cpp b/editor/editor_data.cpp
index bd1eef8e53..11fea8b728 100644
--- a/editor/editor_data.cpp
+++ b/editor/editor_data.cpp
@@ -1217,7 +1217,7 @@ void EditorSelection::add_node(Node *p_node) {
}
selection[p_node] = meta;
- p_node->connect("tree_exiting", callable_mp(this, &EditorSelection::_node_removed).bind(p_node), CONNECT_ONE_SHOT);
+ p_node->connect(SceneStringName(tree_exiting), callable_mp(this, &EditorSelection::_node_removed).bind(p_node), CONNECT_ONE_SHOT);
}
void EditorSelection::remove_node(Node *p_node) {
@@ -1234,7 +1234,7 @@ void EditorSelection::remove_node(Node *p_node) {
}
selection.erase(p_node);
- p_node->disconnect("tree_exiting", callable_mp(this, &EditorSelection::_node_removed));
+ p_node->disconnect(SceneStringName(tree_exiting), callable_mp(this, &EditorSelection::_node_removed));
}
bool EditorSelection::is_selected(Node *p_node) const {