show "X" image for "no group" row

This commit is contained in:
Mitchell Livingston 2008-02-19 05:39:56 +00:00
parent d9f8018c49
commit 4d4b4c1c36
1 changed files with 7 additions and 1 deletions

View File

@ -2486,7 +2486,13 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
: NSLocalizedString(@"No Group", "Group table row");
}
else if ([ident isEqualToString: @"Color"])
return [[GroupsWindowController groups] imageForIndex: [[item objectForKey: @"Group"] intValue] isSmall: YES];
{
int group = [[item objectForKey: @"Group"] intValue];
if (group == -1)
return [NSImage imageNamed: NSImageNameStopProgressTemplate];
else
return [[GroupsWindowController groups] imageForIndex: group isSmall: YES];
}
else if ([ident isEqualToString: @"UL Image"])
return [NSImage imageNamed: @"UpArrowGroupTemplate.png"];
else if ([ident isEqualToString: @"DL Image"])