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/SPCopyTable.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/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; |