* Fix 1.80 beta 1 crash when a malformed magnet link is given to Transmission
* Better prefetching of local data that's being uploaded to peers
==== Mac ====
- * Fix 1.80 beta 1 IPv6 port check issue on 10.6
+ * Fix 1.80 beta 1 IPv6 port check issue on Snow Leopard
* Fix 1.80 beta 1 bug when pasting a URL into the torrent window
* Updated Spanish, Italian, and Brazilian Portuguese localizations
==== GTK+ ====
NSRect badgeRect;
badgeRect.size = [badge size];
- badgeRect.origin.x = 0;
+ badgeRect.origin.x = 0.0;
badgeRect.origin.y = height;
[badge drawInRect: badgeRect fromRect: NSZeroRect operation: NSCompositeSourceOver fraction: 1.0];
} while (NSWidth(badgeRect) < stringSize.width);
//string is in center of image
- NSRect stringRect = badgeRect;
- stringRect.origin.x += (NSWidth(badgeRect) - stringSize.width) * 0.5;
- stringRect.origin.y += (NSHeight(badgeRect) - stringSize.height) * 0.5 + (quit ? 2.0 : 1.0); //adjust for shadow, extra for quit
+ NSRect stringRect;
+ stringRect.origin.x = NSMinX(badgeRect) + (NSWidth(badgeRect) - stringSize.width) * 0.5;
+ stringRect.origin.y = NSMinY(badgeRect) + (NSHeight(badgeRect) - stringSize.height) * 0.5
+ + (quit ? 2.0 : 1.0); //adjust for shadow, extra for quit
stringRect.size = stringSize;
[string drawInRect: stringRect withAttributes: fAttributes];
NSIndexSet * selectedIndexes = [fTrackerTable selectedRowIndexes];
for (NSUInteger i=0, trackerIndex = 0; i <= [selectedIndexes lastIndex]; ++i)
{
- id item = [fTrackers objectAtIndex: i];
const BOOL isSelected = [selectedIndexes containsIndex: i];
- const BOOL isGroup = [item isKindOfClass: [NSNumber class]];
- if (isGroup)
+ if ([[fTrackers objectAtIndex: i] isKindOfClass: [NSNumber class]])
{
if (isSelected)
{
}
}
+ NSAssert([removeIndexes count] > 0, @"Trying to remove no trackers.");
+
if ([[NSUserDefaults standardUserDefaults] boolForKey: @"WarningRemoveTrackers"])
{
NSAlert * alert = [[NSAlert alloc] init];
else if (speed <= 999.95) //100.0 M to 999.9 M
return [NSString localizedStringWithFormat: @"%.1f M", speed];
else //insane speeds
- return [NSString localizedStringWithFormat: @"%.2f G", (speed / 1024.0f)];
+ return [NSString localizedStringWithFormat: @"%.2f G", (speed / 1024.0)];
}
+ (NSString *) stringForRatio: (CGFloat) ratio
return [self localizedStandardCompare: string];
else
{
- const NSInteger comparisonOptions = NSCaseInsensitiveSearch | NSNumericSearch | NSWidthInsensitiveSearch | NSForcedOrderingSearch;
+ const NSStringCompareOptions comparisonOptions = NSCaseInsensitiveSearch | NSNumericSearch | NSWidthInsensitiveSearch
+ | NSForcedOrderingSearch;
return [self compare: string options: comparisonOptions range: NSMakeRange(0, [self length]) locale: [NSLocale currentLocale]];
}
}
- (NSComparisonResult) compareNumeric: (NSString *) string
{
- const NSInteger comparisonOptions = NSNumericSearch | NSForcedOrderingSearch;
+ const NSStringCompareOptions comparisonOptions = NSNumericSearch | NSForcedOrderingSearch;
return [self compare: string options: comparisonOptions range: NSMakeRange(0, [self length]) locale: [NSLocale currentLocale]];
}