summaryrefslogtreecommitdiffstats
path: root/editor/editor_help_search.cpp
diff options
context:
space:
mode:
authorA Thousand Ships <96648715+AThousandShips@users.noreply.github.com>2024-01-22 17:06:42 +0100
committerA Thousand Ships <96648715+AThousandShips@users.noreply.github.com>2024-01-22 17:06:42 +0100
commit3b7b4843007faf723c400acfe5891f2768447123 (patch)
tree35419f456da8ea6c75384c1738791a87ba359ede /editor/editor_help_search.cpp
parent0bcc0e92b3f0ac57d4c4650722f347593a258572 (diff)
downloadredot-engine-3b7b4843007faf723c400acfe5891f2768447123.tar.gz
Fix selection regression in `EditorHelpSearch`
Diffstat (limited to 'editor/editor_help_search.cpp')
-rw-r--r--editor/editor_help_search.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/editor_help_search.cpp b/editor/editor_help_search.cpp
index 229eb79e11..104b0a73c4 100644
--- a/editor/editor_help_search.cpp
+++ b/editor/editor_help_search.cpp
@@ -445,6 +445,9 @@ bool EditorHelpSearch::Runner::_phase_match_classes() {
}
void EditorHelpSearch::Runner::_populate_cache() {
+ // Deselect to prevent re-selection issues.
+ results_tree->deselect_all();
+
root_item = results_tree->get_root();
if (root_item) {