Ignore:
Timestamp:
Jan 9, 2007, 5:09:21 PM (15 years ago)
Author:
livings124
Message:

less reliance on title

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r1333 r1336  
    22332233    SEL action = [menuItem action];
    22342234
    2235     //only enable some items if it is in a context menu or the window is useable 
    2236     BOOL canUseTable = [fWindow isKeyWindow] || [[[menuItem menu] title] isEqualToString: @"Context"];
     2235    //only enable some items if it is in a context menu or the window is useable
     2236    BOOL canUseTable = [fWindow isKeyWindow] || [[menuItem menu] supermenu] != [NSApp mainMenu];
    22372237
    22382238    //enable open items
Note: See TracChangeset for help on using the changeset viewer.