diff options
author | stuconnolly <stuart02@gmail.com> | 2010-12-28 19:52:54 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2010-12-28 19:52:54 +0000 |
commit | 37ef1ea26b8bd0e209f30474a53b9605ba8acfe6 (patch) | |
tree | 0432f1a449d64801f8d97dfda5faa48f8440b99f /Source/SPTextViewAdditions.m | |
parent | e8bcfe72b6b59c8b881feff7ffdc8d719a82ff8c (diff) | |
parent | 16341191bcc112fcf18ddaed2d4755b11479ba45 (diff) | |
download | sequelpro-37ef1ea26b8bd0e209f30474a53b9605ba8acfe6.tar.gz sequelpro-37ef1ea26b8bd0e209f30474a53b9605ba8acfe6.tar.bz2 sequelpro-37ef1ea26b8bd0e209f30474a53b9605ba8acfe6.zip |
Bring fravorites outline view branch up to date with trunk (r3036:3058).
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]; |