Changeset 5071


Ignore:
Timestamp:
Feb 19, 2008, 5:39:56 AM (14 years ago)
Author:
livings124
Message:

show "X" image for "no group" row

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r5063 r5071  
    24872487        }
    24882488        else if ([ident isEqualToString: @"Color"])
    2489             return [[GroupsWindowController groups] imageForIndex: [[item objectForKey: @"Group"] intValue] isSmall: YES];
     2489        {
     2490            int group = [[item objectForKey: @"Group"] intValue];
     2491            if (group == -1)
     2492                return [NSImage imageNamed: NSImageNameStopProgressTemplate];
     2493            else
     2494                return [[GroupsWindowController groups] imageForIndex: group isSmall: YES];
     2495        }
    24902496        else if ([ident isEqualToString: @"UL Image"])
    24912497            return [NSImage imageNamed: @"UpArrowGroupTemplate.png"];
Note: See TracChangeset for help on using the changeset viewer.