aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPAppController.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-12-21 11:23:55 +0000
committerBibiko <bibiko@eva.mpg.de>2010-12-21 11:23:55 +0000
commit4c0b75237fd608107cfff54e904f1b424564617e (patch)
tree468e13cc971a78572228bed87dd62a67af2bfc56 /Source/SPAppController.m
parentc486a4033c121a5e836600857a7db3977b94d160 (diff)
downloadsequelpro-4c0b75237fd608107cfff54e904f1b424564617e.tar.gz
sequelpro-4c0b75237fd608107cfff54e904f1b424564617e.tar.bz2
sequelpro-4c0b75237fd608107cfff54e904f1b424564617e.zip
• fixed issue form redirecting output actions via exit codes if Bundle's default output action was None
• renamed constants to avoid confusing
Diffstat (limited to 'Source/SPAppController.m')
-rw-r--r--Source/SPAppController.m7
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/SPAppController.m b/Source/SPAppController.m
index a974ebf1..cbadfb85 100644
--- a/Source/SPAppController.m
+++ b/Source/SPAppController.m
@@ -825,7 +825,9 @@
[[NSFileManager defaultManager] removeItemAtPath:bundleInputFilePath error:nil];
- NSString *action = [[cmdData objectForKey:SPBundleFileOutputActionKey] lowercaseString];
+ NSString *action = SPBundleOutputActionNone;
+ if([cmdData objectForKey:SPBundleFileOutputActionKey] && [[cmdData objectForKey:SPBundleFileOutputActionKey] length])
+ action = [[cmdData objectForKey:SPBundleFileOutputActionKey] lowercaseString];
// Redirect due exit code
if(err != nil) {
@@ -864,8 +866,7 @@
}
if(err == nil && output) {
- if([cmdData objectForKey:SPBundleFileOutputActionKey] && [[cmdData objectForKey:SPBundleFileOutputActionKey] length]
- && ![[cmdData objectForKey:SPBundleFileOutputActionKey] isEqualToString:SPBundleOutputActionNone]) {
+ if(![action isEqualToString:SPBundleOutputActionNone]) {
NSPoint pos = [NSEvent mouseLocation];
pos.y -= 16;