Ignore:
Timestamp:
Jul 13, 2007, 2:57:20 AM (15 years ago)
Author:
livings124
Message:

use new functions for setting multiple file dl/priorities

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/FileOutlineView.m

    r2318 r2335  
    106106        Torrent * torrent = [(InfoWindowController *)[[self window] windowController] selectedTorrent];
    107107       
    108         if ([[item objectForKey: @"IsFolder"] boolValue]
    109                 || ![torrent canChangeDownloadCheckForFiles: [item objectForKey: @"Indexes"]])
     108        NSIndexSet * indexSet = [item objectForKey: @"Indexes"];
     109        if ([[item objectForKey: @"IsFolder"] boolValue] || ![torrent canChangeDownloadCheckForFiles: indexSet])
    110110            [fNormalColor set];
    111111        else
    112112        {
    113             NSIndexSet * indexSet = [item objectForKey: @"Indexes"];
    114113            if ([torrent hasFilePriority: TR_PRI_HIGH forIndexes: indexSet])
    115114                [fHighPriorityColor set];
Note: See TracChangeset for help on using the changeset viewer.