From 02079c66f3cff4cced9df077650aec79696aee6f Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Thu, 2 May 2019 16:59:39 -0400 Subject: [PATCH] debug_server: Remove the "Write core file" button. It is very, very rarely used, and is extremely wide on some locales (i.e. almost 2x the width of the other buttons combined), making it appear out of place. Now that it can be done from Debugger, having it here does not seem to make a lot of sense. As requested and discussed in #14777. --- src/servers/debug/DebugServer.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/servers/debug/DebugServer.cpp b/src/servers/debug/DebugServer.cpp index 22dece4a0a..19dad0e6ff 100644 --- a/src/servers/debug/DebugServer.cpp +++ b/src/servers/debug/DebugServer.cpp @@ -39,8 +39,8 @@ enum { kActionKillTeam, kActionDebugTeam, - kActionWriteCoreFile, kActionSaveReportTeam, + kActionWriteCoreFile, kActionPromptUser }; @@ -903,10 +903,10 @@ TeamDebugHandler::_HandleMessage(DebugMessage *message) // if someone else kills our teams. BAlert *alert = new BAlert(NULL, buffer.String(), B_TRANSLATE("Terminate"), B_TRANSLATE("Debug"), - B_TRANSLATE("Write core file"), + HANDOVER_USE_DEBUGGER ? B_TRANSLATE("Save report") : NULL, B_WIDTH_AS_USUAL, B_WARNING_ALERT); -#ifdef HANDOVER_USE_DEBUGGER - alert->AddButton(B_TRANSLATE("Save report")); +#if 0 + alert->AddButton(B_TRANSLATE("Write core file")); #endif alert->SetFlags(alert->Flags() | B_CLOSE_ON_ESCAPE); debugAction = alert->Go();