diff options
author | stuconnolly <stuart02@gmail.com> | 2010-07-08 23:39:21 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2010-07-08 23:39:21 +0000 |
commit | 9be51d1013ea08d82a32c89ade8fd7baa0eee907 (patch) | |
tree | d15b63f58c4a463e43a51ff7cd1a4bec8d08aa74 | |
parent | 3e0776251c99e8baa662e5cea9ce589a59d0abb9 (diff) | |
download | sequelpro-9be51d1013ea08d82a32c89ade8fd7baa0eee907.tar.gz sequelpro-9be51d1013ea08d82a32c89ade8fd7baa0eee907.tar.bz2 sequelpro-9be51d1013ea08d82a32c89ade8fd7baa0eee907.zip |
On the export dialog, for the displayed custom filename don't attempt to append a file extension for CSV exports.
-rw-r--r-- | Source/SPExportController.m | 4 |
1 files changed, 3 insertions, 1 deletions
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]; |