From 45243302a11f65b282059e03e3827f7b207b0fc7 Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Wed, 22 Sep 2010 10:03:01 +0000 Subject: Fix an issue where by an export would fail to begin when the check for database changes was not required (functionality introduced in r2670). Fixes issue #835. --- Source/SPExportController.m | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Source/SPExportController.m b/Source/SPExportController.m index 78f187d9..1ae22ed9 100644 --- a/Source/SPExportController.m +++ b/Source/SPExportController.m @@ -555,7 +555,7 @@ #pragma mark Other /** - * Invoked when the user dismissing the export dialog and starts the export process if required. + * Invoked when the user dismisses the export dialog. Starts the export process if required. */ - (void)sheetDidEnd:(NSWindow *)sheet returnCode:(NSInteger)returnCode contextInfo:(void *)contextInfo { @@ -570,6 +570,10 @@ // Give the export sheet a chance to close [self performSelector:@selector(_checkForDatabaseChanges) withObject:nil afterDelay:0.5]; } + else { + // Initialize the export after a short delay to give the alert a chance to close + [self performSelector:@selector(initializeExportUsingSelectedOptions) withObject:nil afterDelay:0.5]; + } } } @@ -578,7 +582,7 @@ // Perform the export ignoring the new tables if (returnCode == NSOKButton) { - // Initialize the export after a slight delay to give the alert a chance to close + // Initialize the export after a short delay to give the alert a chance to close [self performSelector:@selector(initializeExportUsingSelectedOptions) withObject:nil afterDelay:0.5]; } else { -- cgit v1.2.3