diff options
Diffstat (limited to 'Userland/Applications')
-rw-r--r-- | Userland/Applications/ThemeEditor/MainWidget.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Userland/Applications/ThemeEditor/MainWidget.cpp b/Userland/Applications/ThemeEditor/MainWidget.cpp index 4c3c80c55a..f62618010e 100644 --- a/Userland/Applications/ThemeEditor/MainWidget.cpp +++ b/Userland/Applications/ThemeEditor/MainWidget.cpp @@ -231,7 +231,10 @@ ErrorOr<void> MainWidget::initialize_menubar(GUI::Window& window) }))); TRY(file_menu->try_add_separator()); - TRY(file_menu->try_add_action(GUI::CommonActions::make_quit_action([&](auto&) { GUI::Application::the()->quit(); }))); + TRY(file_menu->try_add_action(GUI::CommonActions::make_quit_action([&](auto&) { + if (request_close() == GUI::Window::CloseRequestDecision::Close) + GUI::Application::the()->quit(); + }))); auto accessibility_menu = TRY(window.try_add_menu("&Accessibility")); |