aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableContent.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2010-12-02 23:48:55 +0000
committerrowanbeentje <rowan@beent.je>2010-12-02 23:48:55 +0000
commitfbaacf6f4f093faaa20af083190d62877e9b3874 (patch)
treeb6f8cb79fc0fc2aee143aa83942586147ddc104e /Source/SPTableContent.m
parent5d0ee620c600a9798be851032845dbf1ae4f4324 (diff)
downloadsequelpro-fbaacf6f4f093faaa20af083190d62877e9b3874.tar.gz
sequelpro-fbaacf6f4f093faaa20af083190d62877e9b3874.tar.bz2
sequelpro-fbaacf6f4f093faaa20af083190d62877e9b3874.zip
- Fix maximum table row resetting, which caused a bug when reloading a table with a saved page number when previously on a table with no rows. This addresses Issue #912.
Diffstat (limited to 'Source/SPTableContent.m')
-rw-r--r--Source/SPTableContent.m4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/SPTableContent.m b/Source/SPTableContent.m
index 498b6a2a..483ab35d 100644
--- a/Source/SPTableContent.m
+++ b/Source/SPTableContent.m
@@ -321,6 +321,10 @@
// Restore the table content view to the top left
[tableContentView scrollRowToVisible:0];
[tableContentView scrollColumnToVisible:0];
+
+ // Set the maximum table rows to an estimated count pre-load
+ maxNumRows = [[tableDataInstance statusValueForKey:@"Rows"] integerValue];
+ maxNumRowsIsEstimate = YES;
}
// If no table has been supplied, reset the view to a blank table and disabled elements.