summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Sizov <yuris@humnom.net>2021-03-14 22:54:46 +0300
committerYuri Sizov <yuris@humnom.net>2021-03-14 22:54:46 +0300
commit0c41411fe898dac368191bcc94fb82e8346464d1 (patch)
treef5865eebdb193e23f581c11dd7ab499ddc558c68
parent31bf926eb4f5188ac14bd18e2a3dcd0557f70ff7 (diff)
Fix stale tab names in TabContainer
-rw-r--r--scene/gui/tab_container.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/gui/tab_container.cpp b/scene/gui/tab_container.cpp
index e3e3f549de..9d5871ef02 100644
--- a/scene/gui/tab_container.cpp
+++ b/scene/gui/tab_container.cpp
@@ -1023,6 +1023,7 @@ void TabContainer::set_tab_title(int p_tab, const String &p_title) {
Control *child = _get_tab(p_tab);
ERR_FAIL_COND(!child);
child->set_meta("_tab_name", p_title);
+ _refresh_texts();
update();
}