Get rid of spurious check marks in debug menu

This commit is contained in:
Matthias Neeracher 2008-01-19 21:55:10 +00:00
parent 7b7ae7f3d8
commit cda0deee12

View File

@ -262,8 +262,9 @@
- (BOOL) validateMenuItem:(NSMenuItem *)menuItem - (BOOL) validateMenuItem:(NSMenuItem *)menuItem
{ {
if (int tag = [menuItem tag]) if ([menuItem action] == @selector(togglePlayElements:))
[menuItem setState:(playElements & tag) != 0]; if (int tag = [menuItem tag])
[menuItem setState:(playElements & tag) != 0];
return YES; return YES;
} }