From 9be51d1013ea08d82a32c89ade8fd7baa0eee907 Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Thu, 8 Jul 2010 23:39:21 +0000 Subject: On the export dialog, for the displayed custom filename don't attempt to append a file extension for CSV exports. --- Source/SPExportController.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/SPExportController.m b/Source/SPExportController.m index 6eab3a34..812e5cd1 100644 --- a/Source/SPExportController.m +++ b/Source/SPExportController.m @@ -725,7 +725,9 @@ // Get the current export file extension NSString *extension = [self _currentDefaultExportFileExtension]; - filename = [[self expandCustomFilenameFormatFromString:[exportCustomFilenameTokenField stringValue] usingTableName:[[tablesListInstance tables] objectAtIndex:1]] stringByAppendingPathExtension:extension]; + filename = [self expandCustomFilenameFormatFromString:[exportCustomFilenameTokenField stringValue] usingTableName:[[tablesListInstance tables] objectAtIndex:1]]; + + if ([extension length] > 0) filename = [filename stringByAppendingPathExtension:extension]; } else { filename = [self _generateDefaultExportFilename]; -- cgit v1.2.3