Skip to content

Commit

Permalink
Merge pull request #940 from Sequel-Ace/table-data-not-loaded-931
Browse files Browse the repository at this point in the history
#fixed exporting database with no selected table
  • Loading branch information
jamesstout committed Mar 5, 2021
2 parents 574bad7 + f6a60e5 commit e7b089b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Source/Controllers/DataExport/SPExportController.m
Expand Up @@ -403,6 +403,12 @@ - (IBAction)export:(id)sender
{
SPExportType selectedExportType = SPAnyExportType;
SPExportSource selectedExportSource = SPTableExport;

// if they are exporting and haven't selected a table
// loadTableValues will fail, so select the last table
if([tablesListInstance selectedTableItems].count == 0){
[tablesListInstance selectTableAtIndex:@(tablesListInstance.tables.count-1)];
}

NSArray *selectedTables = [tablesListInstance selectedTableItems];

Expand Down

0 comments on commit e7b089b

Please sign in to comment.