From cda0deee128d94e538272f0909487ee50ca8eb58 Mon Sep 17 00:00:00 2001 From: Matthias Neeracher Date: Sat, 19 Jan 2008 21:55:10 +0000 Subject: [PATCH] Get rid of spurious check marks in debug menu --- Sources/VLDocument.mm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Sources/VLDocument.mm b/Sources/VLDocument.mm index 3f4c1ec..f79de7d 100644 --- a/Sources/VLDocument.mm +++ b/Sources/VLDocument.mm @@ -262,8 +262,9 @@ - (BOOL) validateMenuItem:(NSMenuItem *)menuItem { - if (int tag = [menuItem tag]) - [menuItem setState:(playElements & tag) != 0]; + if ([menuItem action] == @selector(togglePlayElements:)) + if (int tag = [menuItem tag]) + [menuItem setState:(playElements & tag) != 0]; return YES; }