aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPExportInitializer.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2010-08-26 18:49:05 +0000
committerstuconnolly <stuart02@gmail.com>2010-08-26 18:49:05 +0000
commit09b1063c73206cffb1819530498ef209e393a1a3 (patch)
tree1068083cf645f65a89487dfee15055657972926b /Source/SPExportInitializer.m
parent91c2f021d4a8e323872cc733becbdfc19870ceb7 (diff)
downloadsequelpro-09b1063c73206cffb1819530498ef209e393a1a3.tar.gz
sequelpro-09b1063c73206cffb1819530498ef209e393a1a3.tar.bz2
sequelpro-09b1063c73206cffb1819530498ef209e393a1a3.zip
If the user chooses to overwrite the output file(s) when performing an export make sure compression and CSV and XML headers and re-enable/rewritten.
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];
}