Merge pull request #49890 from voxelv/fix_tree_range_click_timeout_crash_46648
Avoid using a nullptr root in Tree._range_click_timeout().
This commit is contained in:
commit
ce941397e5
1 changed files with 4 additions and 0 deletions
|
@ -2155,6 +2155,10 @@ void Tree::_range_click_timeout() {
|
|||
}
|
||||
}
|
||||
|
||||
if (!root) {
|
||||
return;
|
||||
}
|
||||
|
||||
click_handled = false;
|
||||
Ref<InputEventMouseButton> mb;
|
||||
mb.instantiate();
|
||||
|
|
Loading…
Reference in a new issue