diff options
-rw-r--r-- | gui/TabWidget.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gui/TabWidget.cpp b/gui/TabWidget.cpp index ca18016d96..61560a9d47 100644 --- a/gui/TabWidget.cpp +++ b/gui/TabWidget.cpp @@ -48,7 +48,10 @@ int16 TabWidget::getChildY() const { int TabWidget::addTab(const String &title) { // Add a new tab page - Tab newTab = { title, NULL }; + Tab newTab; + newTab.title = title; + newTab.firstWidget = NULL; + _tabs.push_back(newTab); int numTabs = _tabs.size(); |