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/SPCopyTable.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/SPCopyTable.m')
-rw-r--r-- | Source/SPCopyTable.m | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/SPCopyTable.m b/Source/SPCopyTable.m index fad9332e..827672b5 100644 --- a/Source/SPCopyTable.m +++ b/Source/SPCopyTable.m @@ -1276,7 +1276,9 @@ NSInteger kBlobAsImageFile = 4; [[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) { @@ -1315,8 +1317,7 @@ NSInteger kBlobAsImageFile = 4; } 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; |