show "X" image for "no group" row
This commit is contained in:
parent
d9f8018c49
commit
4d4b4c1c36
|
@ -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"])
|
||||
|
|
Loading…
Reference in New Issue