Skip to content

Commit

Permalink
Fix errors while deselecting all tree items; issue #65185
Browse files Browse the repository at this point in the history
  • Loading branch information
marzecdawid committed Nov 15, 2022
1 parent 140f039 commit d4d5df2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scene/gui/tree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4216,7 +4216,9 @@ Tree::SelectMode Tree::get_select_mode() const {
void Tree::deselect_all() {
TreeItem *item = get_next_selected(get_root());
while (item) {
item->deselect(selected_col);
for (int i = 0; i < columns.size(); i++) {
item->deselect(i);
}
TreeItem *prev_item = item;
item = get_next_selected(get_root());
ERR_FAIL_COND(item == prev_item);
Expand Down

0 comments on commit d4d5df2

Please sign in to comment.