Signals: tab_changed now is emitted when it's on scene tree
This commit is contained in:
parent
3a7f1300ee
commit
7ea690b94f
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue