aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTablesList.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPTablesList.m')
-rw-r--r--Source/SPTablesList.m9
1 files changed, 5 insertions, 4 deletions
diff --git a/Source/SPTablesList.m b/Source/SPTablesList.m
index 509e3b83..d0d39eec 100644
--- a/Source/SPTablesList.m
+++ b/Source/SPTablesList.m
@@ -869,9 +869,10 @@
[separatorTableMenuItem setHidden:YES];
[separatorTableMenuItem2 setHidden:YES];
[showCreateSyntaxMenuItem setHidden:YES];
-
- NSMenu *tableSubMenu = [[[NSApp mainMenu] itemWithTitle:@"Table"] submenu];
-
+
+ // Get main menu "Table"'s submenu
+ NSMenu *tableSubMenu = [[[NSApp mainMenu] itemWithTag:SPMainMenuTable] submenu];
+
[[tableSubMenu itemAtIndex:6] setTitle:NSLocalizedString(@"Check Selected Items", @"check selected items menu item")];
[[tableSubMenu itemAtIndex:7] setTitle:NSLocalizedString(@"Repair Selected Items", @"repair selected items menu item")];
@@ -926,7 +927,7 @@
// Set gear menu items Remove/Duplicate table/view and mainMenu > Table items
// according to the table types
- NSMenu *tableSubMenu = [[[NSApp mainMenu] itemWithTitle:@"Table"] submenu];
+ NSMenu *tableSubMenu = [[[NSApp mainMenu] itemWithTag:SPMainMenuTable] submenu];
// Enable/disable the various menu items depending on the selected item. Also update their titles.
// Note, that this should ideally be moved to menu item validation as opposed to using fixed item positions.