store folder icons for now

This commit is contained in:
Mitchell Livingston 2007-03-05 02:46:48 +00:00
parent 5b0332ea4b
commit cf1e916cc0
2 changed files with 2 additions and 3 deletions

View File

@ -715,9 +715,7 @@
if (!item)
return;
NSImage * icon = [[item objectForKey: @"IsFolder"] boolValue] ? [[fTorrents objectAtIndex: 0] icon]
: [item objectForKey: @"Icon"];
[cell setImage: icon];
[cell setImage: [item objectForKey: @"Icon"]];
}
else if ([[tableColumn identifier] isEqualToString: @"Check"])
{

View File

@ -1334,6 +1334,7 @@ static uint32_t kRed = BE(0xFF6450FF), //255, 100, 80
{
[dict setObject: [NSMutableArray array] forKey: @"Children"];
[dict setObject: [NSNumber numberWithInt: 1] forKey: @"Remaining"];
[dict setObject: [[NSWorkspace sharedWorkspace] iconForFileType: NSFileTypeForHFSTypeCode('fldr')] forKey: @"Icon"];
}
else
{