diff options
author | rowanbeentje <rowan@beent.je> | 2011-03-14 01:26:57 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2011-03-14 01:26:57 +0000 |
commit | f63d1de5460968e5466be02676c8c6f9ed8787b6 (patch) | |
tree | c66735047936114febbddcb0a963d43cfd868db5 /Source/SPExportController.m | |
parent | 52eb2680673fca634013fa45ef16f4173a33c880 (diff) | |
download | sequelpro-f63d1de5460968e5466be02676c8c6f9ed8787b6.tar.gz sequelpro-f63d1de5460968e5466be02676c8c6f9ed8787b6.tar.bz2 sequelpro-f63d1de5460968e5466be02676c8c6f9ed8787b6.zip |
- Fix more warnings
Diffstat (limited to 'Source/SPExportController.m')
-rw-r--r-- | Source/SPExportController.m | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/Source/SPExportController.m b/Source/SPExportController.m index 04138c75..2780df54 100644 --- a/Source/SPExportController.m +++ b/Source/SPExportController.m @@ -246,29 +246,29 @@ static const NSString *SPTableViewDropColumnID = @"drop"; */ - (IBAction)export:(id)sender { - SPExportType exportType = SPSQLExport; - SPExportSource exportSource = SPTableExport; + SPExportType selectedExportType = SPSQLExport; + SPExportSource selectedExportSource = SPTableExport; - NSArray *tables = [tablesListInstance selectedTableItems]; + NSArray *selectedTables = [tablesListInstance selectedTableItems]; BOOL isCustomQuerySelected = ([tableDocumentInstance isCustomQuerySelected] && ([[customQueryInstance currentResult] count] > 1)); BOOL isContentSelected = ([[tableDocumentInstance selectedToolbarItemIdentifier] isEqualToString:SPMainToolbarTableContent] && ([[tableContentInstance currentResult] count] > 1)); if (isContentSelected) { - tables = nil; - exportType = SPCSVExport; - exportSource = SPFilteredExport; + selectedTables = nil; + selectedExportType = SPCSVExport; + selectedExportSource = SPFilteredExport; } else if (isCustomQuerySelected) { - tables = nil; - exportType = SPCSVExport; - exportSource = SPQueryExport; + selectedTables = nil; + selectedExportType = SPCSVExport; + selectedExportSource = SPQueryExport; } else { - tables = ([tables count]) ? tables : nil; + selectedTables = ([selectedTables count]) ? selectedTables : nil; } - [self exportTables:tables asFormat:exportType usingSource:exportSource]; + [self exportTables:selectedTables asFormat:selectedExportType usingSource:selectedExportSource]; // Ensure UI validation [self switchInput:exportInputPopUpButton]; |