diff options
author | Max <post@wickenrode.com> | 2015-10-25 19:52:18 +0100 |
---|---|---|
committer | Max <post@wickenrode.com> | 2015-10-25 19:52:18 +0100 |
commit | a1916cf9812e7ff0a958dfa0bdc9436a84782e02 (patch) | |
tree | f8367e78aedf1709af6597c784a7e80db89410ba /Source | |
parent | 2a8528d88a7ad2c9294d64c6b0effd67e14fbf4b (diff) | |
download | sequelpro-a1916cf9812e7ff0a958dfa0bdc9436a84782e02.tar.gz sequelpro-a1916cf9812e7ff0a958dfa0bdc9436a84782e02.tar.bz2 sequelpro-a1916cf9812e7ff0a958dfa0bdc9436a84782e02.zip |
Fix an exception when trying to export CSV to multiple files
(caused by my earlier changes to the export filename tokens)
Diffstat (limited to 'Source')
-rw-r--r-- | Source/SPExportInitializer.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/SPExportInitializer.m b/Source/SPExportInitializer.m index 1b9fb5a8..37f15ae9 100644 --- a/Source/SPExportInitializer.m +++ b/Source/SPExportInitializer.m @@ -505,7 +505,7 @@ BOOL tableNameInTokens = NO; NSArray *representedObjects = [exportCustomFilenameTokenField objectValue]; for (id representedObject in representedObjects) { - if ([representedObject isKindOfClass:[SPExportFileNameTokenObject class]] && [[representedObject tokenContent] isEqualToString:NSLocalizedString(@"table", @"table")]) tableNameInTokens = YES; + if ([representedObject isKindOfClass:[SPExportFileNameTokenObject class]] && [[representedObject tokenId] isEqualToString:NSLocalizedString(@"table", @"table")]) tableNameInTokens = YES; } [exportFilename setString:(tableNameInTokens ? exportFilename : [exportFilename stringByAppendingFormat:@"_%@", table])]; } @@ -567,7 +567,7 @@ BOOL tableNameInTokens = NO; NSArray *representedObjects = [exportCustomFilenameTokenField objectValue]; for (id representedObject in representedObjects) { - if ([representedObject isKindOfClass:[SPExportFileNameTokenObject class]] && [[representedObject tokenContent] isEqualToString:NSLocalizedString(@"table", @"table")]) tableNameInTokens = YES; + if ([representedObject isKindOfClass:[SPExportFileNameTokenObject class]] && [[representedObject tokenId] isEqualToString:NSLocalizedString(@"table", @"table")]) tableNameInTokens = YES; } [exportFilename setString:(tableNameInTokens ? exportFilename : [exportFilename stringByAppendingFormat:@"_%@", table])]; } |