From a80a8fc9be3620d1202d9bf8b3d176d090289509 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Tue, 9 Jan 2007 17:09:21 +0000 Subject: [PATCH] less reliance on title --- macosx/Controller.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/macosx/Controller.m b/macosx/Controller.m index 9d6f0750e..0d2cbe756 100644 --- a/macosx/Controller.m +++ b/macosx/Controller.m @@ -2232,8 +2232,8 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy { SEL action = [menuItem action]; - //only enable some items if it is in a context menu or the window is useable - BOOL canUseTable = [fWindow isKeyWindow] || [[[menuItem menu] title] isEqualToString: @"Context"]; + //only enable some items if it is in a context menu or the window is useable + BOOL canUseTable = [fWindow isKeyWindow] || [[menuItem menu] supermenu] != [NSApp mainMenu]; //enable open items if (action == @selector(openShowSheet:) || action == @selector(openURLShowSheet:))