Changeset 2345


Ignore:
Timestamp:
Jul 15, 2007, 2:43:16 AM (16 years ago)
Author:
livings124
Message:

simplify check for priority text

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/FilePriorityCell.m

    r2338 r2345  
    5555    NSSet * priorities = [torrent filePrioritiesForIndexes: [fItem objectForKey: @"Indexes"]];
    5656   
    57     if ([priorities count] == 0)
     57    int count = [priorities count];
     58    if (count == 0)
    5859        return;
    5960   
     
    8384           
    8485            NSString * text;
    85             if (low && !normal && !high)
    86               text = @"-";
    87             else if (!low && !normal && high)
     86            if (count > 1)
     87                text = @"*";
     88            else if (low)
     89                text = @"-";
     90            else
    8891                text = @"+";
    89             else
    90                 text = @"*";
    9192           
    9293            NSSize textSize = [text sizeWithAttributes: attributes];
Note: See TracChangeset for help on using the changeset viewer.