File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1092,7 +1092,7 @@ - (void)importCSVFile:(NSString *)filename
1092
1092
[query release ];
1093
1093
1094
1094
if ([mySQLConnection queryErrored ]) {
1095
- [tableDocumentInstance showConsole: nil ];
1095
+ [[ tableDocumentInstance onMainThread ] showConsole: nil ];
1096
1096
[errors appendFormat:
1097
1097
NSLocalizedString (@" [ERROR in row %ld ] %@ \n " , @" error text when reading of csv file gave errors" ),
1098
1098
(long )(rowsImported+1 ),[mySQLConnection lastErrorMessage]];
@@ -1132,7 +1132,7 @@ - (void)importCSVFile:(NSString *)filename
1132
1132
1133
1133
// If an error occurred, run the queries individually to get exact line errors
1134
1134
if (!importMethodIsUpdate && [mySQLConnection queryErrored ]) {
1135
- [tableDocumentInstance showConsole: nil ];
1135
+ [[ tableDocumentInstance onMainThread ] showConsole: nil ];
1136
1136
for (i = 0 ; i < csvRowsThisQuery; i++) {
1137
1137
if (progressCancelled) break ;
1138
1138
query = [[NSMutableString alloc ] initWithString: insertBaseString];
You can’t perform that action at this time.
0 commit comments