Fix errors when removing non Control node from TabContainer

(cherry picked from commit 56734f44e5)
This commit is contained in:
Rafał Mikrut 2021-01-12 10:48:18 +01:00 committed by Rémi Verschelde
parent d824efda75
commit 8f19d50e27
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -648,6 +648,10 @@ void TabContainer::remove_child_notify(Node *p_child) {
Container::remove_child_notify(p_child);
if (!Object::cast_to<Control>(p_child)) {
return;
}
call_deferred("_update_current_tab");
p_child->disconnect("renamed", this, "_child_renamed_callback");