diff options
author | Andreas Kling <kling@serenityos.org> | 2021-11-27 17:37:00 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-11-28 08:10:53 +0100 |
commit | 45844f933845c203fd8aa2a31022ea917f231407 (patch) | |
tree | cf79b3b20b63a74592e95a7810e04cc8961a59a9 /Userland/Applications/BrowserSettings/main.cpp | |
parent | 7c19e86a5023ee50d78b95d0d70749168f883e1c (diff) | |
download | serenity-45844f933845c203fd8aa2a31022ea917f231407.zip |
LibGUI: Make GUI::SettingsWindow::add_tab() return ErrorOr
This allows us to use TRY() when creating settings UI.
Diffstat (limited to 'Userland/Applications/BrowserSettings/main.cpp')
-rw-r--r-- | Userland/Applications/BrowserSettings/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Applications/BrowserSettings/main.cpp b/Userland/Applications/BrowserSettings/main.cpp index 3d35037b03..0ac3903415 100644 --- a/Userland/Applications/BrowserSettings/main.cpp +++ b/Userland/Applications/BrowserSettings/main.cpp @@ -26,7 +26,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) auto window = TRY(GUI::SettingsWindow::try_create("Browser Settings", GUI::SettingsWindow::ShowDefaultsButton::Yes)); window->set_icon(app_icon.bitmap_for_size(16)); - window->add_tab<BrowserSettingsWidget>("Browser"); + TRY(window->add_tab<BrowserSettingsWidget>("Browser")); window->show(); return app->exec(); |