oops, wrong patch. don't actually change any code just remove the comment.

This commit is contained in:
joshmoz@gmail.com 2007-09-17 14:29:42 -07:00
Родитель a781c0e86b
Коммит 427ce629fa
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -144,12 +144,13 @@ nsMenuX::Create(nsISupports * aParent, const nsAString &aLabel, const nsAString
SetEnabled(!mMenuContent->AttrValueIs(kNameSpaceID_None, nsWidgetAtoms::disabled, SetEnabled(!mMenuContent->AttrValueIs(kNameSpaceID_None, nsWidgetAtoms::disabled,
nsWidgetAtoms::_true, eCaseMatters)); nsWidgetAtoms::_true, eCaseMatters));
[mNativeMenuItem setEnabled:(BOOL)mIsEnabled];
NSString *newCocoaLabelString = MenuHelpersX::CreateTruncatedCocoaLabel(mLabel); NSString *newCocoaLabelString = MenuHelpersX::CreateTruncatedCocoaLabel(mLabel);
mNativeMenuItem = [[NSMenuItem alloc] initWithTitle:newCocoaLabelString action:nil keyEquivalent:@""]; mNativeMenuItem = [[NSMenuItem alloc] initWithTitle:newCocoaLabelString action:nil keyEquivalent:@""];
[newCocoaLabelString release]; [newCocoaLabelString release];
[mNativeMenuItem setEnabled:(BOOL)mIsEnabled];
// We call MenuConstruct here because keyboard commands are dependent upon // We call MenuConstruct here because keyboard commands are dependent upon
// native menu items being created. If we only call MenuConstruct when a menu // native menu items being created. If we only call MenuConstruct when a menu
// is actually selected, then we can't access keyboard commands until the // is actually selected, then we can't access keyboard commands until the