mirror of
https://github.com/transmission/transmission
synced 2024-12-26 01:27:28 +00:00
one less special case for Tiger (trivial change)
This commit is contained in:
parent
e15114e2aa
commit
7392fd2d62
1 changed files with 11 additions and 17 deletions
|
@ -23,7 +23,6 @@
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
#import "TrackerTableView.h"
|
#import "TrackerTableView.h"
|
||||||
#import "NSApplicationAdditions.h"
|
|
||||||
|
|
||||||
@implementation TrackerTableView
|
@implementation TrackerTableView
|
||||||
|
|
||||||
|
@ -50,31 +49,26 @@
|
||||||
|
|
||||||
if (rows.length > 0)
|
if (rows.length > 0)
|
||||||
{
|
{
|
||||||
BOOL onLeopard = [NSApp isOnLeopardOrBetter];
|
|
||||||
|
|
||||||
//determine what the first row color should be
|
//determine what the first row color should be
|
||||||
if (onLeopard)
|
if (![[fTrackers objectAtIndex: rows.location] isKindOfClass: [NSNumber class]])
|
||||||
{
|
{
|
||||||
if (![[fTrackers objectAtIndex: rows.location] isKindOfClass: [NSNumber class]])
|
for (NSInteger i = rows.location-1; i>=0; i--)
|
||||||
{
|
{
|
||||||
for (NSInteger i = rows.location-1; i>=0; i--)
|
if ([[fTrackers objectAtIndex: i] isKindOfClass: [NSNumber class]])
|
||||||
{
|
break;
|
||||||
if ([[fTrackers objectAtIndex: i] isKindOfClass: [NSNumber class]])
|
start = !start;
|
||||||
break;
|
|
||||||
start = !start;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
rows.location++;
|
|
||||||
rows.length--;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
rows.location++;
|
||||||
|
rows.length--;
|
||||||
|
}
|
||||||
|
|
||||||
NSInteger i;
|
NSInteger i;
|
||||||
for (i = rows.location; i < NSMaxRange(rows); i++)
|
for (i = rows.location; i < NSMaxRange(rows); i++)
|
||||||
{
|
{
|
||||||
if ([[fTrackers objectAtIndex: i] isKindOfClass: [NSNumber class]] && onLeopard)
|
if ([[fTrackers objectAtIndex: i] isKindOfClass: [NSNumber class]])
|
||||||
{
|
{
|
||||||
start = YES;
|
start = YES;
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in a new issue