FontEditor: Close preview window when the main window is closed

This commit is contained in:
Gal Horowitz 2021-10-02 14:32:58 +03:00 committed by Andreas Kling
commit cfc5df27f0
Notes: sideshowbarker 2024-07-18 03:12:05 +09:00

View file

@ -52,7 +52,7 @@ static const char* pangrams[s_pangram_count] = {
static RefPtr<GUI::Window> create_font_preview_window(FontEditorWidget& editor)
{
auto window = GUI::Window::construct();
auto window = GUI::Window::construct(&editor);
window->set_window_type(GUI::WindowType::ToolWindow);
window->set_title("Preview");
window->resize(400, 150);