mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-23 12:26:59 +01:00
Fix errors while deselecting all tree items; issue #65185
(cherry picked from commit d4d5df2314208a99c589456a75299a334672acd2)
This commit is contained in:
parent
5269b803e5
commit
289b16fa7b
@ -3095,7 +3095,9 @@ Tree::SelectMode Tree::get_select_mode() const {
|
|||||||
void Tree::deselect_all() {
|
void Tree::deselect_all() {
|
||||||
TreeItem *item = get_next_selected(get_root());
|
TreeItem *item = get_next_selected(get_root());
|
||||||
while (item) {
|
while (item) {
|
||||||
item->deselect(selected_col);
|
for (int i = 0; i < columns.size(); i++) {
|
||||||
|
item->deselect(i);
|
||||||
|
}
|
||||||
TreeItem *prev_item = item;
|
TreeItem *prev_item = item;
|
||||||
item = get_next_selected(get_root());
|
item = get_next_selected(get_root());
|
||||||
ERR_FAIL_COND(item == prev_item);
|
ERR_FAIL_COND(item == prev_item);
|
||||||
|
Loading…
Reference in New Issue
Block a user