diff options
author | Bibiko <bibiko@eva.mpg.de> | 2010-11-30 00:16:06 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2010-11-30 00:16:06 +0000 |
commit | cc2e00c656a34d4c472a25f929282c8fc63d0174 (patch) | |
tree | 34d4f213f4efc4ddd73625e5941d002b6e3bd92f /Source/SPTextView.m | |
parent | c1cb48f6afa93b8ed26baa434d66d1ca3e0afca7 (diff) | |
download | sequelpro-cc2e00c656a34d4c472a25f929282c8fc63d0174.tar.gz sequelpro-cc2e00c656a34d4c472a25f929282c8fc63d0174.tar.bz2 sequelpro-cc2e00c656a34d4c472a25f929282c8fc63d0174.zip |
• Bundle commands
- before closing a db doc window kill all commands associated to this doc
- suppress an error message if a bash command was killed via code 9
- added a temporary and preliminary table view to display command activities (double-click at TABLE INFO header to toggle and refresh it - only for testing purposes - it shows all commands started from that db doc and a General command names)
Diffstat (limited to 'Source/SPTextView.m')
-rw-r--r-- | Source/SPTextView.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPTextView.m b/Source/SPTextView.m index c458e7b1..85d2623a 100644 --- a/Source/SPTextView.m +++ b/Source/SPTextView.m @@ -1718,7 +1718,7 @@ NSInteger alphabeticSort(id string1, id string2, void *reverse) NSString *cmdResult = [[theHintString substringWithRange:cmdRange] runBashCommandWithEnvironment:nil atCurrentDirectoryPath:nil error:&err]; if(err == nil) { [theHintString replaceCharactersInRange:tagRange withString:cmdResult]; - } 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, [self window], self, nil, nil, [NSString stringWithFormat:@"%@ “%@”:\n%@", NSLocalizedString(@"Error for", @"error for message"), [theHintString substringWithRange:cmdRange], errorMessage]); |