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/SPTextViewAdditions.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/SPTextViewAdditions.m')
-rw-r--r-- | Source/SPTextViewAdditions.m | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/SPTextViewAdditions.m b/Source/SPTextViewAdditions.m index f04c6684..2e1f8f9b 100644 --- a/Source/SPTextViewAdditions.m +++ b/Source/SPTextViewAdditions.m @@ -649,7 +649,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) { @@ -688,8 +690,7 @@ } if(err == nil && output) { - if([cmdData objectForKey:SPBundleFileOutputActionKey] && [[cmdData objectForKey:SPBundleFileOutputActionKey] length] - && ![[cmdData objectForKey:SPBundleFileOutputActionKey] isEqualToString:SPBundleOutputActionNone]) { + if(![action isEqualToString:SPBundleOutputActionNone]) { if([action isEqualToString:SPBundleOutputActionShowAsTextTooltip]) { [SPTooltip showWithObject:output]; |