aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2012-06-20 23:05:42 +0000
committerrowanbeentje <rowan@beent.je>2012-06-20 23:05:42 +0000
commit1a139c2094b927e0db747a171183cef0e34bf650 (patch)
tree59ff65ecf1636dc71fc0cb21104d6d2f9ed2484e /Source
parent8e0b53929282dd4ccc53feb0f512682989e19cb4 (diff)
downloadsequelpro-1a139c2094b927e0db747a171183cef0e34bf650.tar.gz
sequelpro-1a139c2094b927e0db747a171183cef0e34bf650.tar.bz2
sequelpro-1a139c2094b927e0db747a171183cef0e34bf650.zip
- Fix use of the pagination jump-to-page functions, addressing Issue #1376
Diffstat (limited to 'Source')
-rw-r--r--Source/SPTableContent.m8
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/SPTableContent.m b/Source/SPTableContent.m
index 1ae1ada6..0d9a5273 100644
--- a/Source/SPTableContent.m
+++ b/Source/SPTableContent.m
@@ -1683,20 +1683,22 @@
#pragma mark Pagination
/**
- * Move the pagination backwards or forwards one page
+ * Move the pagination backwards or forwards one page, or update
+ * the page to respect the submitted field.
*/
- (IBAction) navigatePaginationFromButton:(id)sender
{
if (![self saveRowOnDeselect]) return;
+
if (sender == paginationPreviousButton) {
if (contentPage <= 1) return;
[paginationPageField setIntegerValue:(contentPage - 1)];
- [self filterTable:self];
} else if (sender == paginationNextButton) {
if ((NSInteger)contentPage * [prefs integerForKey:SPLimitResultsValue] >= maxNumRows) return;
[paginationPageField setIntegerValue:(contentPage + 1)];
- [self filterTable:self];
}
+
+ [self filterTable:self];
}
/**