diff options
author | Tibor Nagy <xnagytibor@gmail.com> | 2020-02-25 19:39:57 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-02-25 19:57:48 +0100 |
commit | 3b8713a9dfe295767e96dcb21de0d238dff2497a (patch) | |
tree | c4fe1ae200d83b5e32d10271f3fab4c55bdc40be /Applications/Terminal/main.cpp | |
parent | 6a892ea3a2586a07d02bc01cc88e0f3338b6cc50 (diff) | |
download | serenity-3b8713a9dfe295767e96dcb21de0d238dff2497a.zip |
Terminal: Open settings as a modal window
To prevent the settings window from getting orphaned when someone
closes the main window behind it.
Diffstat (limited to 'Applications/Terminal/main.cpp')
-rw-r--r-- | Applications/Terminal/main.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Applications/Terminal/main.cpp b/Applications/Terminal/main.cpp index ceec05a002..8de9868780 100644 --- a/Applications/Terminal/main.cpp +++ b/Applications/Terminal/main.cpp @@ -132,6 +132,7 @@ RefPtr<GUI::Window> create_settings_window(TerminalWidget& terminal) auto window = GUI::Window::construct(); window->set_title("Terminal Settings"); window->set_rect(50, 50, 200, 140); + window->set_modal(true); auto settings = GUI::Widget::construct(); window->set_main_widget(settings); |