Skip to content

Commit

Permalink
Fix for deselecting item when select_mode == SELECT_ROW
Browse files Browse the repository at this point in the history
  • Loading branch information
eskandrej committed Mar 15, 2023
1 parent 5dd52f4 commit 6ccef8b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scene/gui/tree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 6ccef8b

Please sign in to comment.