mirror of
https://github.com/transmission/transmission
synced 2025-02-20 13:16:53 +00:00
don't sort when there is 1 or less items
This commit is contained in:
parent
55aaa70546
commit
10061504df
2 changed files with 5 additions and 2 deletions
|
@ -28,6 +28,9 @@
|
|||
|
||||
- (void) sortIndexes: (NSIndexSet *) indexes usingDescriptors: (NSArray *) sortDescriptors
|
||||
{
|
||||
if ([indexes count] <= 1)
|
||||
return;
|
||||
|
||||
NSArray * items = [self objectsAtIndexes: indexes];
|
||||
items = [items sortedArrayUsingDescriptors: sortDescriptors];
|
||||
[self replaceObjectsAtIndexes: indexes withObjects: items];
|
||||
|
|
|
@ -524,7 +524,7 @@
|
|||
if (fMouseDownMinimalStatusField)
|
||||
{
|
||||
[fFieldBackColor set];
|
||||
[[NSBezierPath bezierPathWithRoundedRect: NSInsetRect(minimalStatusRect, -4.0, 0.0) radius: 5.0] fill];
|
||||
[[NSBezierPath bezierPathWithRoundedRect: NSInsetRect(minimalStatusRect, -2.0, 0.0) radius: 5.0] fill];
|
||||
}
|
||||
|
||||
[minimalString drawInRect: minimalStatusRect];
|
||||
|
@ -544,7 +544,7 @@
|
|||
if (fMouseDownProgressField)
|
||||
{
|
||||
[fFieldBackColor set];
|
||||
[[NSBezierPath bezierPathWithRoundedRect: NSInsetRect(progressRect, -4.0, 0.0) radius: 5.0] fill];
|
||||
[[NSBezierPath bezierPathWithRoundedRect: NSInsetRect(progressRect, -2.0, 0.0) radius: 5.0] fill];
|
||||
}
|
||||
|
||||
[progressString drawInRect: progressRect];
|
||||
|
|
Loading…
Reference in a new issue