1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 06:27:45 +00:00

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
parent aa180c821d
commit cfc5df27f0

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