less reliance on title

This commit is contained in:
Mitchell Livingston 2007-01-09 17:09:21 +00:00
parent 5c4d35d0ac
commit a80a8fc9be
1 changed files with 2 additions and 2 deletions

View File

@ -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:))