Merge pull request #69561 from AThousandShips/tree_select_fix

Fix TreeItem::set_as_cursor check
This commit is contained in:
Rémi Verschelde 2022-12-05 00:05:23 +01:00
commit 92b5e616ae
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -1018,7 +1018,7 @@ void TreeItem::set_as_cursor(int p_column) {
if (tree->select_mode != Tree::SELECT_MULTI) {
return;
}
if (tree->selected_col == p_column) {
if (tree->selected_item == this && tree->selected_col == p_column) {
return;
}
tree->selected_item = this;