summaryrefslogtreecommitdiffstats
path: root/editor/plugins/script_editor_plugin.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2021-05-18 10:49:45 +0200
committerGitHub <noreply@github.com>2021-05-18 10:49:45 +0200
commit95bb7207f3f3b00c8a5d7c62dbe3773b43cba87a (patch)
tree3eeedf335e96075f386b1faf3220b51f6ae67576 /editor/plugins/script_editor_plugin.cpp
parent510030fedc79cdcd75f9e1c3c1c195cba6c2703c (diff)
parentbca0d36fe662477eb787b4ddc9b0b69ab4603393 (diff)
downloadredot-engine-95bb7207f3f3b00c8a5d7c62dbe3773b43cba87a.tar.gz
Merge pull request #46773 from trollodel/TreeItem+
Improve TreeItem API and allow to move nodes
Diffstat (limited to 'editor/plugins/script_editor_plugin.cpp')
-rw-r--r--editor/plugins/script_editor_plugin.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp
index 893a9356a2..4bc64c9271 100644
--- a/editor/plugins/script_editor_plugin.cpp
+++ b/editor/plugins/script_editor_plugin.cpp
@@ -339,13 +339,13 @@ void ScriptEditorQuickOpen::_update_search() {
if ((search_box->get_text() == "" || file.findn(search_box->get_text()) != -1)) {
TreeItem *ti = search_options->create_item(root);
ti->set_text(0, file);
- if (root->get_children() == ti) {
+ if (root->get_first_child() == ti) {
ti->select(0);
}
}
}
- get_ok_button()->set_disabled(root->get_children() == nullptr);
+ get_ok_button()->set_disabled(root->get_first_child() == nullptr);
}
void ScriptEditorQuickOpen::_confirmed() {