Changeset 2190


Ignore:
Timestamp:
Jun 24, 2007, 4:03:43 AM (15 years ago)
Author:
livings124
Message:

small cleanup

Location:
trunk/macosx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/FilePriorityCell.m

    r2189 r2190  
    3636    //only for when clicking manually
    3737    Torrent * torrent = [fItem objectForKey: @"Torrent"];
    38     if (![torrent canChangeDownloadCheckForFiles: [fItem objectForKey: @"Indexes"]])
     38    NSIndexSet * indexes = [fItem objectForKey: @"Indexes"];
     39    if (![torrent canChangeDownloadCheckForFiles: indexes])
    3940        return;
    4041   
     
    4748        actualPriority = PRIORITY_NORMAL;
    4849   
    49     [torrent setFilePriority: actualPriority forIndexes: [fItem objectForKey: @"Indexes"]];
     50    [torrent setFilePriority: actualPriority forIndexes: indexes];
    5051    [fParentView reloadData];
    5152}
  • trunk/macosx/InfoWindowController.m

    r2189 r2190  
    918918        Torrent * torrent = [fTorrents objectAtIndex: 0];
    919919        NSIndexSet * indexSet = [item objectForKey: @"Indexes"];
     920       
     921        if (![torrent canChangeDownloadCheckForFiles: indexSet])
     922            return NSLocalizedString(@"Priority Not Available", "Inspector -> files tab -> tooltip");
     923       
    920924        BOOL low = [torrent hasFilePriority: PRIORITY_LOW forIndexes: indexSet],
    921925            normal = [torrent hasFilePriority: PRIORITY_NORMAL forIndexes: indexSet],
Note: See TracChangeset for help on using the changeset viewer.