aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPDataImport.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPDataImport.m')
-rw-r--r--Source/SPDataImport.m8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/SPDataImport.m b/Source/SPDataImport.m
index 1f619070..058ff916 100644
--- a/Source/SPDataImport.m
+++ b/Source/SPDataImport.m
@@ -690,10 +690,10 @@
}
// Update available databases
- [tableDocumentInstance setDatabases:self];
+ [[tableDocumentInstance onMainThread] setDatabases:self];
// Update current selected database
- [[tableDocumentInstance onMainThread] refreshCurrentDatabase];
+ [tableDocumentInstance refreshCurrentDatabase];
// Update current database tables
[tablesListInstance updateTables:self];
@@ -1092,7 +1092,7 @@
[query release];
if ([mySQLConnection queryErrored]) {
- [tableDocumentInstance showConsole:nil];
+ [[tableDocumentInstance onMainThread] showConsole:nil];
[errors appendFormat:
NSLocalizedString(@"[ERROR in row %ld] %@\n", @"error text when reading of csv file gave errors"),
(long)(rowsImported+1),[mySQLConnection lastErrorMessage]];
@@ -1132,7 +1132,7 @@
// If an error occurred, run the queries individually to get exact line errors
if (!importMethodIsUpdate && [mySQLConnection queryErrored]) {
- [tableDocumentInstance showConsole:nil];
+ [[tableDocumentInstance onMainThread] showConsole:nil];
for (i = 0; i < csvRowsThisQuery; i++) {
if (progressCancelled) break;
query = [[NSMutableString alloc] initWithString:insertBaseString];