diff options
| author | Rémi Verschelde <remi@verschelde.fr> | 2021-05-18 10:49:45 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-18 10:49:45 +0200 |
| commit | 95bb7207f3f3b00c8a5d7c62dbe3773b43cba87a (patch) | |
| tree | 3eeedf335e96075f386b1faf3220b51f6ae67576 /editor/plugins/script_editor_plugin.cpp | |
| parent | 510030fedc79cdcd75f9e1c3c1c195cba6c2703c (diff) | |
| parent | bca0d36fe662477eb787b4ddc9b0b69ab4603393 (diff) | |
| download | redot-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.cpp | 4 |
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() { |
