aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TableDump.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/TableDump.m')
-rw-r--r--Source/TableDump.m6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/TableDump.m b/Source/TableDump.m
index 209cd382..9b75c757 100644
--- a/Source/TableDump.m
+++ b/Source/TableDump.m
@@ -1012,8 +1012,10 @@
window:tableWindow
notificationName:@"Import Finished"];
- // Update the content view
- [tableContentInstance reloadTable:self];
+ // Update the content view - do this on the main thread to avoid crashes
+ // if Content Browser shows the table in which the imported data are loaded
+ [tableContentInstance performSelectorOnMainThread:@selector(reloadTable:) withObject:nil waitUntilDone:YES];
+
}
- (void)openPanelDidEnd:(NSOpenPanel *)sheet returnCode:(int)returnCode contextInfo:(NSString *)contextInfo