diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-02-27 21:52:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-27 21:52:51 +0100 |
commit | e66d519286693a03bf59eaba0a5f29c1c9b15d64 (patch) | |
tree | a84c8ef0d0c8fa6279c6d23703d13c68a22c38b9 | |
parent | 3a7f1300ee8a71e8197b807405a1e4b04c48f8a9 (diff) | |
parent | 7ea690b94f9d15690080a8e90e242d01df81d5cd (diff) |
Merge pull request #36613 from akien-mga/tab-container-add-child-fix
Signals: tab_changed now is emitted when it's on scene tree
-rw-r--r-- | scene/gui/tab_container.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/tab_container.cpp b/scene/gui/tab_container.cpp index 66ecbea378..b3c4e3fa3c 100644 --- a/scene/gui/tab_container.cpp +++ b/scene/gui/tab_container.cpp @@ -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); } |