7124551: [macosx] Once added, Menu shortcut cannot be removed

Reviewed-by: art, anthony
This commit is contained in:
Sergey Bylokhov 2012-03-29 17:31:48 +04:00
parent 5c6579f46b
commit 044b12b8c1

View File

@ -125,11 +125,8 @@ AWT_ASSERT_NOT_APPKIT_THREAD;
[JNFRunLoop performOnMainThreadWaiting:YES withBlock:^(){
AWT_ASSERT_APPKIT_THREAD;
if (![theKeyEquivalent isEqualToString:@""]) {
[fMenuItem setKeyEquivalent:theKeyEquivalent];
[fMenuItem setKeyEquivalentModifierMask:modifierMask];
}
[fMenuItem setKeyEquivalent:theKeyEquivalent];
[fMenuItem setKeyEquivalentModifierMask:modifierMask];
[fMenuItem setTitle:theLabel];
}];
}