diff options
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Libraries/LibGUI/TabWidget.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibGUI/TabWidget.cpp b/Userland/Libraries/LibGUI/TabWidget.cpp index cfa1974912..05bb14c521 100644 --- a/Userland/Libraries/LibGUI/TabWidget.cpp +++ b/Userland/Libraries/LibGUI/TabWidget.cpp @@ -53,8 +53,8 @@ TabWidget::TabWidget() ErrorOr<void> TabWidget::try_add_widget(Widget& widget) { - m_tabs.append({ widget.title(), nullptr, &widget, false }); - add_child(widget); + TRY(m_tabs.try_append({ widget.title(), nullptr, &widget, false })); + TRY(try_add_child(widget)); update_focus_policy(); if (on_tab_count_change) on_tab_count_change(m_tabs.size()); |