Merge pull request #71307 from eskandrej/master

Fix for deselecting item when select_mode == SELECT_ROW
This commit is contained in:
Yuri Sizov 2023-03-15 16:15:21 +01:00 committed by GitHub
commit 7b1b5117a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4202,6 +4202,10 @@ void Tree::item_deselected(int p_column, TreeItem *p_item) {
if (select_mode == SELECT_MULTI || select_mode == SELECT_SINGLE) {
p_item->cells.write[p_column].selected = false;
} else if (select_mode == SELECT_ROW) {
for (int i = 0; i < p_item->cells.size(); i++) {
p_item->cells.write[i].selected = false;
}
}
queue_redraw();
}