aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TableContent.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2009-11-23 13:38:57 +0000
committerrowanbeentje <rowan@beent.je>2009-11-23 13:38:57 +0000
commitf7a01ec068e7e7088a685cabd22c3dbbb8f7f0da (patch)
tree0bd1bba2202a036676b6acc9428d1e07e791fd91 /Source/TableContent.m
parent1064dfa5438d493f996d52fd9b1554d121b93214 (diff)
downloadsequelpro-f7a01ec068e7e7088a685cabd22c3dbbb8f7f0da.tar.gz
sequelpro-f7a01ec068e7e7088a685cabd22c3dbbb8f7f0da.tar.bz2
sequelpro-f7a01ec068e7e7088a685cabd22c3dbbb8f7f0da.zip
- Tweak pagination to fix click-through of pagination popup, fix next page button mouseover text, display no text when 0 or 1 pages of results for clarity
- No longer include the old app icon in the built product (but leave it in the project)
Diffstat (limited to 'Source/TableContent.m')
-rw-r--r--Source/TableContent.m4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/TableContent.m b/Source/TableContent.m
index d3988cef..679f8e1c 100644
--- a/Source/TableContent.m
+++ b/Source/TableContent.m
@@ -1136,7 +1136,9 @@
// Update the pagination button text
if ([prefs boolForKey:SPLimitResults]) {
- if (isFiltered) {
+ if (maxPage <= 1) {
+ [paginationButton setTitle:@""];
+ } else if (isFiltered) {
[paginationButton setTitle:[NSString stringWithFormat:NSLocalizedString(@"Page %@", @"Filtered pagination button status text"), [numberFormatter stringFromNumber:[NSNumber numberWithUnsignedInteger:contentPage]]]];
} else {
[paginationButton setTitle:[NSString stringWithFormat:NSLocalizedString(@"Page %@ of %@", @"Pagination button status text"), [numberFormatter stringFromNumber:[NSNumber numberWithUnsignedInteger:contentPage]], [numberFormatter stringFromNumber:[NSNumber numberWithUnsignedInteger:maxPage]]]];