Changeset 3478


Ignore:
Timestamp:
Oct 20, 2007, 7:38:10 PM (14 years ago)
Author:
livings124
Message:

another switch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/FilePriorityCell.m

    r3477 r3478  
    5353    //only for when clicking manually
    5454    int priority;
    55     if (segment == 0)
    56         priority = TR_PRI_LOW;
    57     else if (segment == 2)
    58         priority = TR_PRI_HIGH;
    59     else
    60         priority = TR_PRI_NORMAL;
     55    switch (segment)
     56    {
     57        case 0:
     58            priority = TR_PRI_LOW;
     59            break;
     60        case 1:
     61            priority = TR_PRI_NORMAL;
     62            break;
     63        case 2:
     64            priority = TR_PRI_HIGH;
     65            break;
     66    }
    6167   
    62     Torrent * torrent = [(FileOutlineView *)[self controlView] torrent];
     68    FileOutlineView * controlView = (FileOutlineView *)[self controlView];
     69    Torrent * torrent = [controlView torrent];
    6370    [torrent setFilePriority: priority forIndexes: [[self representedObject] objectForKey: @"Indexes"]];
    64     [(FileOutlineView *)[self controlView] reloadData];
     71    [controlView reloadData];
    6572}
    6673
Note: See TracChangeset for help on using the changeset viewer.