summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
Diffstat (limited to 'scene')
-rw-r--r--scene/gui/tab_container.cpp2
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);
}