From cc2e00c656a34d4c472a25f929282c8fc63d0174 Mon Sep 17 00:00:00 2001 From: Bibiko Date: Tue, 30 Nov 2010 00:16:06 +0000 Subject: =?UTF-8?q?=E2=80=A2=20Bundle=20commands=20-=20before=20closing=20?= =?UTF-8?q?a=20db=20doc=20window=20kill=20all=20commands=20associated=20to?= =?UTF-8?q?=20this=20doc=20-=20suppress=20an=20error=20message=20if=20a=20?= =?UTF-8?q?bash=20command=20was=20killed=20via=20code=209=20-=20added=20a?= =?UTF-8?q?=20temporary=20and=20preliminary=20table=20view=20to=20display?= =?UTF-8?q?=20command=20activities=20(double-click=20at=20TABLE=20INFO=20h?= =?UTF-8?q?eader=20to=20toggle=20and=20refresh=20it=20-=20only=20for=20tes?= =?UTF-8?q?ting=20purposes=20-=20it=20shows=20all=20commands=20started=20f?= =?UTF-8?q?rom=20that=20db=20doc=20and=20a=20General=20command=20names)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/SPAppController.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/SPAppController.m') diff --git a/Source/SPAppController.m b/Source/SPAppController.m index 12b9e9a4..ad456b89 100644 --- a/Source/SPAppController.m +++ b/Source/SPAppController.m @@ -818,7 +818,7 @@ } } } - } else { + } else if([err code] != 9) { // Suppress an error message if command was killed NSString *errorMessage = [err localizedDescription]; SPBeginAlertSheet(NSLocalizedString(@"BASH Error", @"bash error"), NSLocalizedString(@"OK", @"OK button"), nil, nil, [NSApp mainWindow], self, nil, nil, [NSString stringWithFormat:@"%@ “%@”:\n%@", NSLocalizedString(@"Error for", @"error for message"), [cmdData objectForKey:@"name"], errorMessage]); -- cgit v1.2.3