diff options
author | rowanbeentje <rowan@beent.je> | 2010-12-02 23:48:55 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2010-12-02 23:48:55 +0000 |
commit | fbaacf6f4f093faaa20af083190d62877e9b3874 (patch) | |
tree | b6f8cb79fc0fc2aee143aa83942586147ddc104e /Source | |
parent | 5d0ee620c600a9798be851032845dbf1ae4f4324 (diff) | |
download | sequelpro-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')
-rw-r--r-- | Source/SPTableContent.m | 4 |
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. |