Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

make programmatically added items work in multiple localizations

  • Loading branch information...
commit 12c4b283e9c142b665a310bf17a696fa7addf0d5 1 parent 78c7267
Zachary Schneirov authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  LinkingEditor.m
View
2  LinkingEditor.m
@@ -105,7 +105,7 @@ - (void)awakeFromNib {
if (additionalEditItems) {
additionalEditItems = NO;
- NSMenu *editMenu = [[[NSApp mainMenu] itemWithTitle:@"Edit"] submenu];
+ NSMenu *editMenu = [[NSApp mainMenu] numberOfItems] > 2 ? [[[NSApp mainMenu] itemAtIndex:2] submenu] : nil;
if (IsSnowLeopardOrLater) {
theMenuItem = [[NSMenuItem alloc] initWithTitle:NSLocalizedString(@"Use Automatic Text Replacement", "use-text-replacement command in the edit menu")
Please sign in to comment.
Something went wrong with that request. Please try again.