aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTextViewAdditions.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-11-29 21:25:52 +0000
committerBibiko <bibiko@eva.mpg.de>2010-11-29 21:25:52 +0000
commitc1cb48f6afa93b8ed26baa434d66d1ca3e0afca7 (patch)
treef3b1a2864fbead4c7810303eb60b83b2457d677e /Source/SPTextViewAdditions.m
parentcef5a0200f433e53bd27b2516e5ac269205f0420 (diff)
downloadsequelpro-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.m2
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];