summaryrefslogtreecommitdiff
path: root/Userland/Applications/FontEditor
diff options
context:
space:
mode:
authorGal Horowitz <galush.horowitz@gmail.com>2021-10-02 14:32:58 +0300
committerAndreas Kling <kling@serenityos.org>2021-10-02 20:55:14 +0200
commitcfc5df27f00b63806ccb84440e75beef2a199a70 (patch)
tree11f8321d425385961f0e39f8894f692e228341d8 /Userland/Applications/FontEditor
parentaa180c821d3135fc16d814fed6268cb45548d106 (diff)
downloadserenity-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.cpp2
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);