diff options
author | Gal Horowitz <galush.horowitz@gmail.com> | 2021-10-02 14:32:58 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-10-02 20:55:14 +0200 |
commit | cfc5df27f00b63806ccb84440e75beef2a199a70 (patch) | |
tree | 11f8321d425385961f0e39f8894f692e228341d8 /Userland/Applications/FontEditor | |
parent | aa180c821d3135fc16d814fed6268cb45548d106 (diff) | |
download | serenity-cfc5df27f00b63806ccb84440e75beef2a199a70.zip |
FontEditor: Close preview window when the main window is closed
Diffstat (limited to 'Userland/Applications/FontEditor')
-rw-r--r-- | Userland/Applications/FontEditor/FontEditor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<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); |