aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPExportInitializer.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-06-24 11:41:01 +0000
committerBibiko <bibiko@eva.mpg.de>2010-06-24 11:41:01 +0000
commitcc24661e6566d5f35e092642fe1fd435b49ad385 (patch)
tree3d6c6746dbe9c69038a8534170ba8fff73e13f8e /Source/SPExportInitializer.m
parented0e2e03219746667d71b9cccc72c2958bdd4d12 (diff)
downloadsequelpro-cc24661e6566d5f35e092642fe1fd435b49ad385.tar.gz
sequelpro-cc24661e6566d5f35e092642fe1fd435b49ad385.tar.bz2
sequelpro-cc24661e6566d5f35e092642fe1fd435b49ad385.zip
• replaced @"sql" and @"spf" by their SPConstant definitions
• further Save Session progress - store "saved as session accessory view data" globally to support "Save Session" - delete global "saved as session accessory view data" if last SP window will be closed - added to info.plist which tab is currently selected
Diffstat (limited to 'Source/SPExportInitializer.m')
-rw-r--r--Source/SPExportInitializer.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPExportInitializer.m b/Source/SPExportInitializer.m
index e41d4a44..d30d3a9f 100644
--- a/Source/SPExportInitializer.m
+++ b/Source/SPExportInitializer.m
@@ -294,7 +294,7 @@
// Create custom filename if required
[exportFilename setString:(createCustomFilename) ? [self expandCustomFilenameFormatFromString:[exportCustomFilenameTokenField stringValue] usingTableName:nil] : [NSString stringWithFormat:@"%@_%@", [tableDocumentInstance database], [[NSDate date] descriptionWithCalendarFormat:@"%Y-%m-%d" timeZone:nil locale:nil]]];
- [exportFilename setString:[exportFilename stringByAppendingPathExtension:([exportCompressOutputFile state]) ? @"sql.gz" : @"sql"]];
+ [exportFilename setString:[exportFilename stringByAppendingPathExtension:([exportCompressOutputFile state]) ? [NSString stringWithFormat:@"%@.gz", SPFileExtensionSQL] : SPFileExtensionSQL]];
SPFileHandle *fileHandle = [self getFileHandleForFilePath:[[exportPathField stringValue] stringByAppendingPathComponent:exportFilename]];