summaryrefslogtreecommitdiff
path: root/Userland/DevTools/SQLStudio/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/DevTools/SQLStudio/main.cpp')
-rw-r--r--Userland/DevTools/SQLStudio/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Userland/DevTools/SQLStudio/main.cpp b/Userland/DevTools/SQLStudio/main.cpp
index 5689a33509..e855d3ee20 100644
--- a/Userland/DevTools/SQLStudio/main.cpp
+++ b/Userland/DevTools/SQLStudio/main.cpp
@@ -30,7 +30,8 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
window->set_icon(app_icon.bitmap_for_size(16));
window->set_title("SQL Studio");
- auto main_widget = TRY(window->set_main_widget<MainWidget>());
+ auto main_widget = TRY(MainWidget::create());
+ window->set_main_widget(main_widget);
TRY(main_widget->initialize_menu(window));
window->on_close_request = [&] {