summaryrefslogtreecommitdiff
path: root/Userland/Games/Solitaire/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Games/Solitaire/main.cpp')
-rw-r--r--Userland/Games/Solitaire/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Games/Solitaire/main.cpp b/Userland/Games/Solitaire/main.cpp
index f2f5e8b0dd..a2800e7809 100644
--- a/Userland/Games/Solitaire/main.cpp
+++ b/Userland/Games/Solitaire/main.cpp
@@ -83,7 +83,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
if (mode >= Solitaire::Mode::__Count)
update_mode(Solitaire::Mode::SingleCardDraw);
- auto widget = TRY(window->try_set_main_widget<GUI::Widget>());
+ auto widget = TRY(window->set_main_widget<GUI::Widget>());
TRY(widget->try_load_from_gml(solitaire_gml));
auto& game = *widget->find_descendant_of_type_named<Solitaire::Game>("game");