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,6 +262,7 @@
- (BOOL) validateMenuItem:(NSMenuItem *)menuItem - (BOOL) validateMenuItem:(NSMenuItem *)menuItem
{ {
if ([menuItem action] == @selector(togglePlayElements:))
if (int tag = [menuItem tag]) if (int tag = [menuItem tag])
[menuItem setState:(playElements & tag) != 0]; [menuItem setState:(playElements & tag) != 0];