Fixed crash when pressing down key on empty Tree
Fixes #33554
(cherry picked from commit 47a4ca0022
)
This commit is contained in:
parent
8851026e8a
commit
9360b23544
|
@ -2152,8 +2152,9 @@ void Tree::_go_down() {
|
|||
TreeItem *next = NULL;
|
||||
if (!selected_item) {
|
||||
|
||||
if (root) {
|
||||
next = hide_root ? root->get_next_visible() : root;
|
||||
selected_item = 0;
|
||||
}
|
||||
} else {
|
||||
|
||||
next = selected_item->get_next_visible();
|
||||
|
|
Loading…
Reference in New Issue