Changeset 1527


Ignore:
Timestamp:
Mar 5, 2007, 2:46:48 AM (15 years ago)
Author:
livings124
Message:

store folder icons for now

Location:
trunk/macosx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/InfoWindowController.m

    r1526 r1527  
    716716            return;
    717717       
    718         NSImage * icon = [[item objectForKey: @"IsFolder"] boolValue] ? [[fTorrents objectAtIndex: 0] icon]
    719                                                                         : [item objectForKey: @"Icon"];
    720         [cell setImage: icon];
     718        [cell setImage: [item objectForKey: @"Icon"]];
    721719    }
    722720    else if ([[tableColumn identifier] isEqualToString: @"Check"])
  • trunk/macosx/Torrent.m

    r1526 r1527  
    13351335            [dict setObject: [NSMutableArray array] forKey: @"Children"];
    13361336            [dict setObject: [NSNumber numberWithInt: 1] forKey: @"Remaining"];
     1337            [dict setObject: [[NSWorkspace sharedWorkspace] iconForFileType: NSFileTypeForHFSTypeCode('fldr')] forKey: @"Icon"];
    13371338        }
    13381339        else
Note: See TracChangeset for help on using the changeset viewer.