mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-26 03:12:07 -05:00
GMLPlayground: Set parent window for preview window
Closing the main window didn't close the preview window along with it.
This commit is contained in:
parent
94f408097a
commit
477ee34215
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ ErrorOr<NonnullRefPtr<MainWidget>> MainWidget::try_create(GUI::Icon const& icon)
|
|||
main_widget->m_editor = main_widget->find_descendant_of_type_named<GUI::TextEditor>("text_editor");
|
||||
main_widget->m_preview_frame_widget = main_widget->find_descendant_of_type_named<GUI::Frame>("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<GUI::Widget>());
|
||||
|
|
Loading…
Add table
Reference in a new issue