winemac: Always call super in -validateMenuItem:; fixes check mark in Windows menu.

This commit is contained in:
Ken Thomases 2013-05-16 18:41:59 -05:00 committed by Alexandre Julliard
parent 939d9a906f
commit 05c250dfcb
1 changed files with 5 additions and 2 deletions

View File

@ -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. */