Skip to content

Commit

Permalink
Merge pull request #54152 from bjauny/fix_treenotification
Browse files Browse the repository at this point in the history
  • Loading branch information
akien-mga authored Oct 23, 2021
2 parents 18aaa88 + e74db1d commit 5a48cba
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 @@ -2795,7 +2795,9 @@ int Tree::_get_title_button_height() const {

void Tree::_notification(int p_what) {
if (p_what == NOTIFICATION_FOCUS_ENTER) {
focus_in_id = get_tree()->get_event_count();
if (get_tree()) {
focus_in_id = get_tree()->get_event_count();
}
}
if (p_what == NOTIFICATION_MOUSE_EXIT) {
if (cache.hover_type != Cache::CLICK_NONE) {
Expand Down

0 comments on commit 5a48cba

Please sign in to comment.