From cfc5df27f00b63806ccb84440e75beef2a199a70 Mon Sep 17 00:00:00 2001 From: Gal Horowitz Date: Sat, 2 Oct 2021 14:32:58 +0300 Subject: [PATCH] FontEditor: Close preview window when the main window is closed --- Userland/Applications/FontEditor/FontEditor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Applications/FontEditor/FontEditor.cpp b/Userland/Applications/FontEditor/FontEditor.cpp index c730fd7925..f4e8b4b9c2 100644 --- a/Userland/Applications/FontEditor/FontEditor.cpp +++ b/Userland/Applications/FontEditor/FontEditor.cpp @@ -52,7 +52,7 @@ static const char* pangrams[s_pangram_count] = { static RefPtr 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);