aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPExportFilenameUtilities.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPExportFilenameUtilities.m')
-rw-r--r--Source/SPExportFilenameUtilities.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/SPExportFilenameUtilities.m b/Source/SPExportFilenameUtilities.m
index 53786d51..64101b21 100644
--- a/Source/SPExportFilenameUtilities.m
+++ b/Source/SPExportFilenameUtilities.m
@@ -95,7 +95,8 @@
extension = SPFileExtensionSQL;
break;
case SPCSVExport:
- extension = @"csv";
+ // If the tab character (\t) is selected as the feild separator return the extension as .tsv
+ extension = ([exportCSVFieldsTerminatedField indexOfSelectedItem] == 2) ? @"tsv" : @"csv";
break;
case SPXMLExport:
extension = @"xml";