diff options
author | Dawid Marzec <marzecdawid@gmail.com> | 2023-01-07 21:04:23 +0100 |
---|---|---|
committer | Dawid Marzec <marzecdawid@gmail.com> | 2023-01-07 21:04:23 +0100 |
commit | 76a3f8e573594d73c2681071a36368202d3ec690 (patch) | |
tree | 4bed440580eb798c4b961b4e5f28d42fad73700b /scene/gui/tree.cpp | |
parent | fcba87e696d58912838d8a4a6987b10efa28e78f (diff) |
Fix text search in Tree with multiselect
Diffstat (limited to 'scene/gui/tree.cpp')
-rw-r--r-- | scene/gui/tree.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scene/gui/tree.cpp b/scene/gui/tree.cpp index ace3edfcb0..2b0aa2a719 100644 --- a/scene/gui/tree.cpp +++ b/scene/gui/tree.cpp @@ -4850,7 +4850,11 @@ void Tree::_do_incr_search(const String &p_add) { return; } - item->select(col); + if (select_mode == SELECT_MULTI) { + item->set_as_cursor(col); + } else { + item->select(col); + } ensure_cursor_is_visible(); } |