aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Source')
-rw-r--r--Source/SPExportController.m4
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];