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);