mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-01 08:51:57 +00:00
Fix for #276
This commit is contained in:
parent
51ed6a9608
commit
d312fbe168
2 changed files with 29 additions and 24 deletions
|
@ -650,7 +650,6 @@ static Class imageClass;
|
|||
NSString *action;
|
||||
NSString *key;
|
||||
BOOL isSeparator = NO;
|
||||
NSNumber *keyMask;
|
||||
|
||||
if ([aDecoder containsValueForKey: @"NSIsSeparator"])
|
||||
{
|
||||
|
@ -703,13 +702,13 @@ static Class imageClass;
|
|||
[self setSubmenu: submenu];
|
||||
}
|
||||
|
||||
// Set the key mask when it is present; or default to NSCommandKeyMask
|
||||
// when not specified
|
||||
keyMask = (NSNumber*)[aDecoder decodeObjectForKey: @"NSKeyEquivModMask"];
|
||||
|
||||
if (keyMask != nil)
|
||||
{
|
||||
[self setKeyEquivalentModifierMask: [keyMask intValue]];
|
||||
/* Set the key mask when it is present; or default to NSCommandKeyMask
|
||||
* when not specified
|
||||
*/
|
||||
if ([aDecoder containsValueForKey: @"NSKeyEquivModMask"])
|
||||
{
|
||||
[self setKeyEquivalentModifierMask:
|
||||
[aDecoder decodeIntegerForKey: @"NSKeyEquivModMask"]];
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue