Signals: tab_changed now is emitted when it's on scene tree

This commit is contained in:
Mateo Dev .59 2020-02-24 15:43:04 -03:00 committed by Rémi Verschelde
parent 3a7f1300ee
commit 7ea690b94f

View file

@ -538,7 +538,7 @@ void TabContainer::add_child_notify(Node *p_child) {
update();
p_child->connect_compat("renamed", this, "_child_renamed_callback");
if (first)
if (first && is_inside_tree())
emit_signal("tab_changed", current);
}