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:
parent
aa180c821d
commit
cfc5df27f0
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue