From 2655303d64ebe428e3b321224eb5976de7e79db3 Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Thu, 22 Aug 2013 22:33:00 +0000 Subject: - Ensure the table row counts are correctly updated when reloading tables - this should address Issue #1789 and Issue #1788, and possibly Issue #1787 --- Source/SPTableContent.m | 2 ++ 1 file changed, 2 insertions(+) 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]; -- cgit v1.2.3