Merge pull request #71307 from eskandrej/master
Fix for deselecting item when select_mode == SELECT_ROW
This commit is contained in:
commit
7b1b5117a6
1 changed files with 4 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue