fix ordering error
This commit is contained in:
parent
63b82714f8
commit
f231e13d6c
|
@ -2702,7 +2702,7 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
|
|||
[sortedTorrents insertObject: [movingTorrents objectAtIndex: i] atIndex: insertIndex + i];
|
||||
|
||||
//redo order values
|
||||
for (i = insertIndex; i < [sortedTorrents count]; i++)
|
||||
for (i = 0; i < [sortedTorrents count]; i++)
|
||||
[[sortedTorrents objectAtIndex: i] setOrderValue: i];
|
||||
|
||||
[sortedTorrents release];
|
||||
|
|
|
@ -197,6 +197,11 @@ void completenessChangeCallback(tr_torrent * torrent, cp_status_t status, void *
|
|||
[super dealloc];
|
||||
}
|
||||
|
||||
- (NSString *) description
|
||||
{
|
||||
return [@"Torrent: " stringByAppendingString: [self name]];
|
||||
}
|
||||
|
||||
- (void) closeRemoveTorrent
|
||||
{
|
||||
//allow the file to be index by Time Machine
|
||||
|
|
|
@ -372,7 +372,6 @@
|
|||
value = MAX_GROUP;
|
||||
|
||||
[fCollapsedGroups addIndex: value];
|
||||
|
||||
[[NSNotificationCenter defaultCenter] postNotificationName: @"OutlineExpandCollapse" object: self];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue