diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-06-17 02:25:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-17 02:25:41 +0200 |
commit | bb4c464fecae268a419a91db8eec8f525e904b45 (patch) | |
tree | 3b7bd058bcc9c8062ca4f085cb2be5aff0b44197 /scene/gui/tree.cpp | |
parent | cb471420cff173e030148e216cb071b51551007a (diff) | |
parent | 8ab13f8acefef73a0d68560c6866639d9ca0dc80 (diff) |
Merge pull request #49258 from megalobyte/editor-fix
Fixes for documentation search
Diffstat (limited to 'scene/gui/tree.cpp')
-rw-r--r-- | scene/gui/tree.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scene/gui/tree.cpp b/scene/gui/tree.cpp index f66cc13af5..26d881955b 100644 --- a/scene/gui/tree.cpp +++ b/scene/gui/tree.cpp @@ -2451,10 +2451,10 @@ void Tree::_text_editor_modal_close() { return; } - _text_editor_enter(text_editor->get_text()); + _text_editor_submit(text_editor->get_text()); } -void Tree::_text_editor_enter(String p_text) { +void Tree::_text_editor_submit(String p_text) { popup_editor->hide(); if (!popup_edited_item) { @@ -4554,7 +4554,7 @@ Tree::Tree() { h_scroll->connect("value_changed", callable_mp(this, &Tree::_scroll_moved)); v_scroll->connect("value_changed", callable_mp(this, &Tree::_scroll_moved)); - text_editor->connect("text_entered", callable_mp(this, &Tree::_text_editor_enter)); + text_editor->connect("text_submitted", callable_mp(this, &Tree::_text_editor_submit)); popup_editor->connect("popup_hide", callable_mp(this, &Tree::_text_editor_modal_close)); popup_menu->connect("id_pressed", callable_mp(this, &Tree::popup_select)); value_editor->connect("value_changed", callable_mp(this, &Tree::value_editor_changed)); |