Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

make programmatically added items work in multiple localizations

  • Loading branch information...
commit 12c4b283e9c142b665a310bf17a696fa7addf0d5 1 parent 78c7267
Zachary Schneirov authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  LinkingEditor.m
2  LinkingEditor.m
@@ -105,7 +105,7 @@ - (void)awakeFromNib {
105 105 if (additionalEditItems) {
106 106 additionalEditItems = NO;
107 107
108   - NSMenu *editMenu = [[[NSApp mainMenu] itemWithTitle:@"Edit"] submenu];
  108 + NSMenu *editMenu = [[NSApp mainMenu] numberOfItems] > 2 ? [[[NSApp mainMenu] itemAtIndex:2] submenu] : nil;
109 109
110 110 if (IsSnowLeopardOrLater) {
111 111 theMenuItem = [[NSMenuItem alloc] initWithTitle:NSLocalizedString(@"Use Automatic Text Replacement", "use-text-replacement command in the edit menu")

0 comments on commit 12c4b28

Please sign in to comment.
Something went wrong with that request. Please try again.