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
This commit is contained in:
@@ -254,10 +254,13 @@ TermWindow::_CanClose(int32 index)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (isBusy) {
|
if (isBusy) {
|
||||||
const char* alertMessage = B_TRANSLATE("A process is still running.\n"
|
const char* alertMessage = index == -1 || fSessions.CountItems() == 1
|
||||||
"If you close the Terminal the process will be killed.");
|
? B_TRANSLATE("A process is still running.\n"
|
||||||
BAlert* alert = new BAlert(B_TRANSLATE("Really quit?"),
|
"If you close the Terminal, the process will be killed.")
|
||||||
alertMessage, B_TRANSLATE("OK"), B_TRANSLATE("Cancel"), NULL,
|
: 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);
|
B_WIDTH_AS_USUAL, B_WARNING_ALERT);
|
||||||
int32 result = alert->Go();
|
int32 result = alert->Go();
|
||||||
if (result == 1)
|
if (result == 1)
|
||||||
|
|||||||
Reference in New Issue
Block a user