From f231e13d6cb42e9558dd06f35d45373b071bdf32 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Mon, 12 May 2008 01:32:33 +0000 Subject: [PATCH] fix ordering error --- macosx/Controller.m | 2 +- macosx/Torrent.m | 5 +++++ macosx/TorrentTableView.m | 1 - 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/macosx/Controller.m b/macosx/Controller.m index bed8a7f6a..7787106a8 100644 --- a/macosx/Controller.m +++ b/macosx/Controller.m @@ -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]; diff --git a/macosx/Torrent.m b/macosx/Torrent.m index 5223ae523..5068d0faf 100644 --- a/macosx/Torrent.m +++ b/macosx/Torrent.m @@ -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 diff --git a/macosx/TorrentTableView.m b/macosx/TorrentTableView.m index 677e4ab0b..ee645e764 100644 --- a/macosx/TorrentTableView.m +++ b/macosx/TorrentTableView.m @@ -372,7 +372,6 @@ value = MAX_GROUP; [fCollapsedGroups addIndex: value]; - [[NSNotificationCenter defaultCenter] postNotificationName: @"OutlineExpandCollapse" object: self]; } -- 2.40.0