From 4e502e7d0db2e3e9a2c94b8952225d19c2ea893f Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Sat, 17 Apr 2010 11:41:58 +0000 Subject: - Fix .sql.gz extension when exporting databases to SQL when the compression setting has been saved as on --- Source/TableDump.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source') 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]; -- cgit v1.2.3