From 3b7b4843007faf723c400acfe5891f2768447123 Mon Sep 17 00:00:00 2001 From: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> Date: Mon, 22 Jan 2024 17:06:42 +0100 Subject: [PATCH] Fix selection regression in `EditorHelpSearch` --- editor/editor_help_search.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/editor/editor_help_search.cpp b/editor/editor_help_search.cpp index 229eb79e11c..104b0a73c4c 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) {