aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorMax <post@wickenrode.com>2017-03-16 01:09:44 +0100
committerMax <post@wickenrode.com>2017-03-16 01:09:44 +0100
commit8b6dc62de2cd4a3d6f61bece6dcd259610422adb (patch)
tree7f2469ba4b051323796307578e7cdfccdd096734 /Source
parent98e4a6fb1957efd158ad075b2ba8eb8ea6695539 (diff)
downloadsequelpro-8b6dc62de2cd4a3d6f61bece6dcd259610422adb.tar.gz
sequelpro-8b6dc62de2cd4a3d6f61bece6dcd259610422adb.tar.bz2
sequelpro-8b6dc62de2cd4a3d6f61bece6dcd259610422adb.zip
Fix two cases of background thread updating UI (could cause a concurrent modification exception)
Diffstat (limited to 'Source')
-rw-r--r--Source/SPDataImport.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/SPDataImport.m b/Source/SPDataImport.m
index 1f619070..03b83c6c 100644
--- a/Source/SPDataImport.m
+++ b/Source/SPDataImport.m
@@ -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];