Skip to content

Commit

Permalink
Merge pull request #36613 from akien-mga/tab-container-add-child-fix
Browse files Browse the repository at this point in the history
Signals: tab_changed now is emitted when it's on scene tree
  • Loading branch information
akien-mga authored Feb 27, 2020
2 parents 3a7f130 + 7ea690b commit e66d519
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scene/gui/tab_container.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit e66d519

Please sign in to comment.