diff options
author | Bibiko <bibiko@eva.mpg.de> | 2010-11-29 21:25:52 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2010-11-29 21:25:52 +0000 |
commit | c1cb48f6afa93b8ed26baa434d66d1ca3e0afca7 (patch) | |
tree | f3b1a2864fbead4c7810303eb60b83b2457d677e /Source/SPTextViewAdditions.m | |
parent | cef5a0200f433e53bd27b2516e5ac269205f0420 (diff) | |
download | sequelpro-c1cb48f6afa93b8ed26baa434d66d1ca3e0afca7.tar.gz sequelpro-c1cb48f6afa93b8ed26baa434d66d1ca3e0afca7.tar.bz2 sequelpro-c1cb48f6afa93b8ed26baa434d66d1ca3e0afca7.zip |
• Bundle commands
- register running commands for each SPDatabaseDocument or if the command runs via 'General' for NSApp delegate
- kill all running commands before SP will be terminated
Diffstat (limited to 'Source/SPTextViewAdditions.m')
-rw-r--r-- | Source/SPTextViewAdditions.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPTextViewAdditions.m b/Source/SPTextViewAdditions.m index 0c9fe630..f75505df 100644 --- a/Source/SPTextViewAdditions.m +++ b/Source/SPTextViewAdditions.m @@ -603,7 +603,7 @@ return; } - NSString *output = [cmd runBashCommandWithEnvironment:env atCurrentDirectoryPath:nil error:&err]; + NSString *output = [cmd runBashCommandWithEnvironment:env atCurrentDirectoryPath:nil callerDocument:[[NSApp delegate] frontDocument] withName:([cmdData objectForKey:SPBundleFileNameKey])?[cmdData objectForKey:SPBundleFileNameKey]:@"" error:&err]; [[NSFileManager defaultManager] removeItemAtPath:bundleInputFilePath error:nil]; |