From 0d927d60ad66010af39e7c171ebbac4feb5e84f4 Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Sun, 15 Aug 2010 15:21:05 +0000 Subject: On the export dialog make sure the tables list is refreshed when switching export types to ensure procs and functions are only included for SQL exports. --- Source/SPExportController.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/SPExportController.m b/Source/SPExportController.m index 11198472..8b69e9f4 100644 --- a/Source/SPExportController.m +++ b/Source/SPExportController.m @@ -335,6 +335,8 @@ [self updateAvailableExportFilenameTokens]; if (!showCustomFilenameView) [self updateDisplayedExportFilename]; + + [self refreshTableList:self]; } /** @@ -426,9 +428,7 @@ * Refreshes the table list. */ - (IBAction)refreshTableList:(id)sender -{ - NSUInteger i; - +{ [tables removeAllObjects]; // For all modes, retrieve table and view names @@ -445,7 +445,7 @@ } // For SQL only, add procedures and functions - if ([[[[exportTypeTabBar selectedTabViewItem] identifier] lowercaseString] isEqualToString:@"sql"]) { + if (exportType == SPSQLExport) { NSArray *procedures = [tablesListInstance allProcedureNames]; for (id procName in procedures) -- cgit v1.2.3