aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2010-04-17 11:41:58 +0000
committerrowanbeentje <rowan@beent.je>2010-04-17 11:41:58 +0000
commit4e502e7d0db2e3e9a2c94b8952225d19c2ea893f (patch)
treee20cf25a8ac2b5edd50f6d03d4db235ce8e095cf
parentba21a4f70e5326b51eaf1ff9d3dc788e77350c25 (diff)
downloadsequelpro-4e502e7d0db2e3e9a2c94b8952225d19c2ea893f.tar.gz
sequelpro-4e502e7d0db2e3e9a2c94b8952225d19c2ea893f.tar.bz2
sequelpro-4e502e7d0db2e3e9a2c94b8952225d19c2ea893f.zip
- Fix .sql.gz extension when exporting databases to SQL when the compression setting has been saved as on
-rw-r--r--Source/TableDump.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/TableDump.m b/Source/TableDump.m
index 4ae4743f..b4497123 100644
--- a/Source/TableDump.m
+++ b/Source/TableDump.m
@@ -169,9 +169,9 @@
[self reloadTables:self];
[sqlCompressionSwitch setState:[prefs boolForKey:SPSQLExportUseCompression]?NSOnState:NSOffState];
if ([prefs boolForKey:SPSQLExportUseCompression]) {
- [currentExportPanel setRequiredFileType:@"sql.gz"];
+ [currentExportPanel setAllowedFileTypes:[NSArray arrayWithObjects:@"sql.gz", @"gz", nil]];
} else {
- [currentExportPanel setRequiredFileType:@"sql"];
+ [currentExportPanel setAllowedFileTypes:[NSArray arrayWithObjects:@"sql", nil]];
}
file = [NSString stringWithFormat:@"%@_%@.%@", [tableDocumentInstance database], currentDate, [currentExportPanel requiredFileType]];
[currentExportPanel setAccessoryView:exportDumpView];