diff --git a/Userland/DevTools/GMLPlayground/MainWidget.cpp b/Userland/DevTools/GMLPlayground/MainWidget.cpp index fd8c9a0e35..c9fc0c2df4 100644 --- a/Userland/DevTools/GMLPlayground/MainWidget.cpp +++ b/Userland/DevTools/GMLPlayground/MainWidget.cpp @@ -69,7 +69,7 @@ ErrorOr> MainWidget::try_create(GUI::Icon const& icon) main_widget->m_editor = main_widget->find_descendant_of_type_named("text_editor"); main_widget->m_preview_frame_widget = main_widget->find_descendant_of_type_named("preview_frame"); - main_widget->m_preview_window = TRY(GUI::Window::try_create()); + main_widget->m_preview_window = TRY(GUI::Window::try_create(main_widget)); main_widget->m_preview_window->set_title("Preview - GML Playground"); main_widget->m_preview_window->set_icon(icon.bitmap_for_size(16)); main_widget->m_preview_window_widget = TRY(main_widget->m_preview_window->set_main_widget());