summaryrefslogtreecommitdiff
path: root/scene/gui
diff options
context:
space:
mode:
authorPaulb23 <p_batty@hotmail.co.uk>2016-06-15 18:19:34 +0100
committerPaulb23 <p_batty@hotmail.co.uk>2016-06-15 18:19:34 +0100
commita3481ed1c780ac983d474d97af68f7175f296116 (patch)
tree3febedd2446a4900e3ce7860e30f8ff9fae51c34 /scene/gui
parent367aabf03080da8e4e72c9db56b0b2097c86d6b4 (diff)
Fixed error: set_current_tab print on project open
Diffstat (limited to 'scene/gui')
-rw-r--r--scene/gui/tab_container.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/scene/gui/tab_container.cpp b/scene/gui/tab_container.cpp
index d19e5f0d60..ad790d1b54 100644
--- a/scene/gui/tab_container.cpp
+++ b/scene/gui/tab_container.cpp
@@ -412,8 +412,9 @@ void TabContainer::_notification(int p_what) {
} break;
case NOTIFICATION_THEME_CHANGED: {
-
- call_deferred("set_current_tab",get_current_tab()); //wait until all changed theme
+ if (get_tab_count() > 0) {
+ call_deferred("set_current_tab",get_current_tab()); //wait until all changed theme
+ }
} break;
}
}