mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 04:18:39 +00:00
fix adding trackers
This commit is contained in:
@@ -681,7 +681,7 @@ typedef enum
|
||||
{
|
||||
id item = [fTrackers objectAtIndex: row];
|
||||
|
||||
if (![item isKindOfClass: [TrackerNode class]])
|
||||
if ([item isKindOfClass: [NSDictionary class]])
|
||||
{
|
||||
NSString * tierString = [NSString stringWithFormat: NSLocalizedString(@"Tier %d", "Inspector -> tracker table"),
|
||||
[[item objectForKey: @"Tier"] integerValue]];
|
||||
@@ -690,7 +690,7 @@ typedef enum
|
||||
return tierString;
|
||||
}
|
||||
else
|
||||
return item;
|
||||
return item; //TrackerNode or NSString
|
||||
}
|
||||
return nil;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user