Fixed crash in ScrollContainer
_notification
This commit is contained in:
parent
11efbd582e
commit
ee81979f90
1 changed files with 3 additions and 1 deletions
|
@ -320,7 +320,9 @@ void ScrollContainer::_notification(int p_what) {
|
|||
};
|
||||
|
||||
if (p_what == NOTIFICATION_READY) {
|
||||
get_viewport()->connect("gui_focus_changed", callable_mp(this, &ScrollContainer::_gui_focus_changed));
|
||||
Viewport* viewport = get_viewport();
|
||||
ERR_FAIL_COND(!viewport);
|
||||
viewport->connect("gui_focus_changed", callable_mp(this, &ScrollContainer::_gui_focus_changed));
|
||||
_update_dimensions();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue