1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 09:13:06 +00:00

one less special case for Tiger (trivial change)

This commit is contained in:
Mitchell Livingston 2008-10-25 02:34:43 +00:00
parent e15114e2aa
commit 7392fd2d62

View file

@ -23,7 +23,6 @@
*****************************************************************************/
#import "TrackerTableView.h"
#import "NSApplicationAdditions.h"
@implementation TrackerTableView
@ -50,31 +49,26 @@
if (rows.length > 0)
{
BOOL onLeopard = [NSApp isOnLeopardOrBetter];
//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;
start = !start;
}
}
else
{
rows.location++;
rows.length--;
if ([[fTrackers objectAtIndex: i] isKindOfClass: [NSNumber class]])
break;
start = !start;
}
}
else
{
rows.location++;
rows.length--;
}
NSInteger 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;
continue;