winemac: Always call super in -validateMenuItem:; fixes check mark in Windows menu.
This commit is contained in:
parent
939d9a906f
commit
05c250dfcb
|
@ -1020,9 +1020,12 @@ - (BOOL) isExcludedFromWindowsMenu
|
|||
|
||||
- (BOOL) validateMenuItem:(NSMenuItem *)menuItem
|
||||
{
|
||||
BOOL ret = [super validateMenuItem:menuItem];
|
||||
|
||||
if ([menuItem action] == @selector(makeKeyAndOrderFront:))
|
||||
return [self isKeyWindow] || (!self.disabled && !self.noActivate);
|
||||
return [super validateMenuItem:menuItem];
|
||||
ret = [self isKeyWindow] || (!self.disabled && !self.noActivate);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
/* We don't call this. It's the action method of the items in the Window menu. */
|
||||
|
|
Loading…
Reference in New Issue