fix ordering error

This commit is contained in:
Mitchell Livingston 2008-05-12 01:32:33 +00:00
parent 63b82714f8
commit f231e13d6c
3 changed files with 6 additions and 2 deletions

View File

@ -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];

View File

@ -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

View File

@ -372,7 +372,6 @@
value = MAX_GROUP;
[fCollapsedGroups addIndex: value];
[[NSNotificationCenter defaultCenter] postNotificationName: @"OutlineExpandCollapse" object: self];
}