1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-24 08:43:27 +00:00

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

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"])