From 53cd28e9d5464b5342bc66dc7db365adb280f9ee Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Tue, 16 Nov 2010 15:39:36 +0000 Subject: [PATCH] Still-running-processes warning: * Made the phrasing consistent: "quit" -> "close", "OK" -> "Close". * Use a more fitting text when only closing a terminal tab. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39446 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/terminal/TermWindow.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/apps/terminal/TermWindow.cpp b/src/apps/terminal/TermWindow.cpp index 3a03a88c25..307fa87263 100644 --- a/src/apps/terminal/TermWindow.cpp +++ b/src/apps/terminal/TermWindow.cpp @@ -254,10 +254,13 @@ TermWindow::_CanClose(int32 index) } if (isBusy) { - const char* alertMessage = B_TRANSLATE("A process is still running.\n" - "If you close the Terminal the process will be killed."); - BAlert* alert = new BAlert(B_TRANSLATE("Really quit?"), - alertMessage, B_TRANSLATE("OK"), B_TRANSLATE("Cancel"), NULL, + const char* alertMessage = index == -1 || fSessions.CountItems() == 1 + ? B_TRANSLATE("A process is still running.\n" + "If you close the Terminal, the process will be killed.") + : B_TRANSLATE("A process is still running.\n" + "If you close the tab, the process will be killed."); + BAlert* alert = new BAlert(B_TRANSLATE("Really close?"), + alertMessage, B_TRANSLATE("Close"), B_TRANSLATE("Cancel"), NULL, B_WIDTH_AS_USUAL, B_WARNING_ALERT); int32 result = alert->Go(); if (result == 1)