aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TableContent.m
diff options
context:
space:
mode:
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]]]];