aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPExportInitializer.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPExportInitializer.m')
-rw-r--r--Source/SPExportInitializer.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPExportInitializer.m b/Source/SPExportInitializer.m
index 4812dd82..ee184701 100644
--- a/Source/SPExportInitializer.m
+++ b/Source/SPExportInitializer.m
@@ -400,8 +400,8 @@
{
if ([exportFile createExportFileHandle:NO] == SPExportFileHandleCreated) {
- // TODO: these will not currently get triggered if there's an error in creating the files - eg when the user later chooses "overwrite".
[exportFile setCompressionFormat:[exportOutputCompressionFormatPopupButton indexOfSelectedItem]];
+
if ([exportFile exportFileNeedsCSVHeader]) {
[self writeCSVHeaderToExportFile:exportFile];
}