From f14006637db05f8d8113b78c13fea559980e2130 Mon Sep 17 00:00:00 2001 From: Lucas CHOLLET Date: Thu, 8 Dec 2022 13:55:25 +0100 Subject: [PATCH] CrashReporter: Factorize exiting behavior to `window->close()` --- Userland/Applications/CrashReporter/main.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Userland/Applications/CrashReporter/main.cpp b/Userland/Applications/CrashReporter/main.cpp index 672c8f4956..f004ca430c 100644 --- a/Userland/Applications/CrashReporter/main.cpp +++ b/Userland/Applications/CrashReporter/main.cpp @@ -264,9 +264,7 @@ ErrorOr serenity_main(Main::Arguments arguments) auto& close_button = *widget->find_descendant_of_type_named("close_button"); close_button.on_click = [&](auto) { - if (unlink_on_exit) - unlink_coredump(coredump_path); - app->quit(); + window->close(); }; close_button.set_focus(true);