diff options
author | stuconnolly <stuart02@gmail.com> | 2010-08-15 15:21:05 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2010-08-15 15:21:05 +0000 |
commit | 0d927d60ad66010af39e7c171ebbac4feb5e84f4 (patch) | |
tree | 8a71a9c5ae4cd0524205db124869b9482c45507e /Source/SPExportController.m | |
parent | 561fad23dfb635f76878c580ce4c132c15614276 (diff) | |
download | sequelpro-0d927d60ad66010af39e7c171ebbac4feb5e84f4.tar.gz sequelpro-0d927d60ad66010af39e7c171ebbac4feb5e84f4.tar.bz2 sequelpro-0d927d60ad66010af39e7c171ebbac4feb5e84f4.zip |
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.
Diffstat (limited to 'Source/SPExportController.m')
-rw-r--r-- | Source/SPExportController.m | 8 |
1 files 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) |