aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPXMLExporterDelegate.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2010-08-14 11:04:21 +0000
committerstuconnolly <stuart02@gmail.com>2010-08-14 11:04:21 +0000
commit3922ff7470f56072246f988f6f83756b754ab0ac (patch)
treefa6ee645b8746bf83f1b25d92a615269cf6470e3 /Source/SPXMLExporterDelegate.m
parentf1e829f98f50d9e75e7ba111361a625f7aab802d (diff)
downloadsequelpro-3922ff7470f56072246f988f6f83756b754ab0ac.tar.gz
sequelpro-3922ff7470f56072246f988f6f83756b754ab0ac.tar.bz2
sequelpro-3922ff7470f56072246f988f6f83756b754ab0ac.zip
Fix the display and updating of the export progress sheet when performing an XML export. Caused by the incorrect implementation of XML export delegate methods as well as a missing call to one of them during the export process.
Diffstat (limited to 'Source/SPXMLExporterDelegate.m')
-rw-r--r--Source/SPXMLExporterDelegate.m16
1 files changed, 8 insertions, 8 deletions
diff --git a/Source/SPXMLExporterDelegate.m b/Source/SPXMLExporterDelegate.m
index 5aa01ba8..17748bdc 100644
--- a/Source/SPXMLExporterDelegate.m
+++ b/Source/SPXMLExporterDelegate.m
@@ -107,6 +107,14 @@
*/
- (void)xmlExportProcessProgressUpdated:(SPXMLExporter *)exporter
{
+ [[exportProgressIndicator onMainThread] setDoubleValue:[exporter exportProgressValue]];
+}
+
+/**
+ *
+ */
+- (void)xmlExportProcessWillBeginWritingData:(SPXMLExporter *)exporter
+{
// Only update the progress text if this is a table export
if (exportSource == SPTableExport) {
[[exportProgressText onMainThread] setStringValue:[NSString stringWithFormat:NSLocalizedString(@"Table %lu of %lu (%@): Writing data...", @"export label showing app if writing data for a specific table"), currentTableExportIndex, exportTableCount, [exporter xmlTableName]]];
@@ -123,12 +131,4 @@
[[exportProgressIndicator onMainThread] setDoubleValue:0];
}
-/**
- *
- */
-- (void)xmlExportProcessWillBeginWritingData:(SPXMLExporter *)exporter
-{
- [exportProgressIndicator setDoubleValue:[exporter exportProgressValue]];
-}
-
@end