aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TableDocument.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/TableDocument.m')
-rw-r--r--Source/TableDocument.m10
1 files changed, 8 insertions, 2 deletions
diff --git a/Source/TableDocument.m b/Source/TableDocument.m
index 0a68eda2..65cf9049 100644
--- a/Source/TableDocument.m
+++ b/Source/TableDocument.m
@@ -3137,9 +3137,15 @@
return ([self table] != nil && [[self table] isNotEqualTo:@""]);
}
- // Focus on table list filter
+ // Focus on table list or filter resp.
if ([menuItem action] == @selector(focusOnTableListFilter:)) {
- return ([[tablesListInstance valueForKeyPath:@"tables"] count] > 20);
+
+ if([[tablesListInstance valueForKeyPath:@"tables"] count] > 20)
+ [menuItem setTitle:NSLocalizedString(@"Filter Tables", @"filter tables menu item")];
+ else
+ [menuItem setTitle:NSLocalizedString(@"Change Focus to Table List", @"change focus to table list menu item")];
+
+ return ([[tablesListInstance valueForKeyPath:@"tables"] count] > 1);
}
return [super validateMenuItem:menuItem];