aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2013-08-22 22:33:00 +0000
committerrowanbeentje <rowan@beent.je>2013-08-22 22:33:00 +0000
commit2655303d64ebe428e3b321224eb5976de7e79db3 (patch)
tree71c25af6ab7470a3137684a2efed36624a0358d8
parent046c3596722a52f6f4562ca99da4e95b1681d45c (diff)
downloadsequelpro-2655303d64ebe428e3b321224eb5976de7e79db3.tar.gz
sequelpro-2655303d64ebe428e3b321224eb5976de7e79db3.tar.bz2
sequelpro-2655303d64ebe428e3b321224eb5976de7e79db3.zip
- Ensure the table row counts are correctly updated when reloading tables - this should address Issue #1789 and Issue #1788, and possibly Issue #1787
-rw-r--r--Source/SPTableContent.m2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/SPTableContent.m b/Source/SPTableContent.m
index cc0102f2..7ffb2f1c 100644
--- a/Source/SPTableContent.m
+++ b/Source/SPTableContent.m
@@ -1002,6 +1002,7 @@ static NSString *SPTableFilterSetDefaultOperator = @"SPTableFilterSetDefaultOper
// Update the data storage, updating the current store if appropriate
pthread_mutex_lock(&tableValuesLock);
+ tableRowsCount = 0;
[tableValues setDataStorage:theResultStore updatingExisting:!![tableValues count]];
pthread_mutex_unlock(&tableValuesLock);
@@ -1033,6 +1034,7 @@ static NSString *SPTableFilterSetDefaultOperator = @"SPTableFilterSetDefaultOper
[tableLoadingCondition waitUntilDate:[NSDate dateWithTimeIntervalSinceNow:0.05]];
}
[tableLoadingCondition unlock];
+ tableRowsCount = [tableValues count];
// If the final column autoresize wasn't performed, perform it
if (tableLoadLastRowCount < 200) [[self onMainThread] autosizeColumns];