Commit 05c250df authored by Ken Thomases's avatar Ken Thomases Committed by Alexandre Julliard

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

parent 939d9a90
......@@ -1020,9 +1020,12 @@ static inline void fix_generic_modifiers_by_device(NSUInteger* modifiers)
- (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. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment