diff options
author | Bibiko <bibiko@eva.mpg.de> | 2010-12-21 11:23:55 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2010-12-21 11:23:55 +0000 |
commit | 4c0b75237fd608107cfff54e904f1b424564617e (patch) | |
tree | 468e13cc971a78572228bed87dd62a67af2bfc56 /Source/SPAppController.m | |
parent | c486a4033c121a5e836600857a7db3977b94d160 (diff) | |
download | sequelpro-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.m | 7 |
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; |