diff options
| author | Paulb23 | 2016-06-15 18:19:34 +0100 |
|---|---|---|
| committer | Paulb23 | 2016-06-15 18:19:34 +0100 |
| commit | a3481ed1c780ac983d474d97af68f7175f296116 (patch) | |
| tree | 3febedd2446a4900e3ce7860e30f8ff9fae51c34 /scene/gui/tab_container.cpp | |
| parent | 367aabf03080da8e4e72c9db56b0b2097c86d6b4 (diff) | |
| download | godot-a3481ed1c780ac983d474d97af68f7175f296116.tar.gz godot-a3481ed1c780ac983d474d97af68f7175f296116.tar.zst godot-a3481ed1c780ac983d474d97af68f7175f296116.zip | |
Diffstat (limited to 'scene/gui/tab_container.cpp')
| -rw-r--r-- | scene/gui/tab_container.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scene/gui/tab_container.cpp b/scene/gui/tab_container.cpp index d19e5f0d6..ad790d1b5 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; } } |
