aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TableContent.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2009-11-18 01:03:21 +0000
committerrowanbeentje <rowan@beent.je>2009-11-18 01:03:21 +0000
commit251bc8a52e56fbf240b74d7bfcaf21090bbfe83f (patch)
treee992739c33d2d89f34eb4a30632984c859739810 /Source/TableContent.m
parent1c7cf0aa49e68714dbfc4d7ca01fccd519e22aee (diff)
downloadsequelpro-251bc8a52e56fbf240b74d7bfcaf21090bbfe83f.tar.gz
sequelpro-251bc8a52e56fbf240b74d7bfcaf21090bbfe83f.tar.bz2
sequelpro-251bc8a52e56fbf240b74d7bfcaf21090bbfe83f.zip
- Make some thread safety improvements to improve on Issue #460
- Add some NSTextView editing notifications to maintain state correctly in an attempt to fix issue in crash log on comment 9 on #460
Diffstat (limited to 'Source/TableContent.m')
-rw-r--r--Source/TableContent.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/TableContent.m b/Source/TableContent.m
index fbce4b33..26d2138e 100644
--- a/Source/TableContent.m
+++ b/Source/TableContent.m
@@ -2313,7 +2313,7 @@
[tableDataInstance setStatusValue:[NSString stringWithFormat:@"%d", maxNumRows] forKey:@"Rows"];
[tableDataInstance setStatusValue:@"y" forKey:@"RowsCountAccurate"];
[tableInfoInstance tableChanged:nil];
- [[tableDocumentInstance valueForKey:@"extendedTableInfoInstance"] loadTable:selectedTable];
+ [[tableDocumentInstance valueForKey:@"extendedTableInfoInstance"] performSelectorOnMainThread:@selector(loadTable:) withObject:selectedTable waitUntilDone:YES];
// Otherwise, if the table status value is accurate, use it
} else if ([[tableDataInstance statusValueForKey:@"RowsCountAccurate"] boolValue]) {
@@ -2328,7 +2328,7 @@
[tableDataInstance setStatusValue:[NSString stringWithFormat:@"%d", maxNumRows] forKey:@"Rows"];
[tableDataInstance setStatusValue:@"y" forKey:@"RowsCountAccurate"];
[tableInfoInstance tableChanged:nil];
- [[tableDocumentInstance valueForKey:@"extendedTableInfoInstance"] loadTable:selectedTable];
+ [[tableDocumentInstance valueForKey:@"extendedTableInfoInstance"] performSelectorOnMainThread:@selector(loadTable:) withObject:selectedTable waitUntilDone:YES];
// Use the estimate count
} else {