From: Mitchell Livingston Date: Wed, 3 Aug 2011 02:08:37 +0000 (+0000) Subject: some cleanup of the Mac integration of libT queue code (we're getting there, but... X-Git-Tag: 2.40b1~291 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=52487018edb3d572bca56c1a308ab42f65716edd;p=transmission some cleanup of the Mac integration of libT queue code (we're getting there, but we're not there yet) --- diff --git a/macosx/Controller.m b/macosx/Controller.m index 8f4fb02c7..eb816e140 100644 --- a/macosx/Controller.m +++ b/macosx/Controller.m @@ -1221,11 +1221,7 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy for (Torrent * torrent in torrents) [torrent startTransferNoQueue]; - #warning change to updateTorrentsInQueue? - [self updateUI]; - [self applyFilter]; - [[fWindow toolbar] validateVisibleItems]; - [self updateTorrentHistory]; + [self updateTorrentsInQueue]; } - (void) stopSelectedTorrents: (id) sender @@ -1247,10 +1243,7 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy [torrents makeObjectsPerformSelector: @selector(stopTransfer)]; - [self updateUI]; - [self applyFilter]; - [[fWindow toolbar] validateVisibleItems]; - [self updateTorrentHistory]; + [self updateTorrentsInQueue]; } - (void) removeTorrents: (NSArray *) torrents deleteData: (BOOL) deleteData diff --git a/macosx/Torrent.m b/macosx/Torrent.m index 6246c736c..67bb71a57 100644 --- a/macosx/Torrent.m +++ b/macosx/Torrent.m @@ -328,9 +328,6 @@ int trashDataFile(const char * filename) { tr_torrentStop(fHandle); [self update]; - - #warning still needed? - [[NSNotificationCenter defaultCenter] postNotificationName: @"UpdateQueue" object: self]; } } @@ -614,9 +611,8 @@ int trashDataFile(const char * filename) - (NSString *) name { -#warning remove - //return [NSString stringWithFormat: @"%d %@", fStat->queuePosition, [NSString stringWithUTF8String: fInfo->name]]; - return fInfo->name != NULL ? [NSString stringWithUTF8String: fInfo->name] : fHashString; + return [NSString stringWithFormat: @"%d %@", fStat->queuePosition, [NSString stringWithUTF8String: fInfo->name]]; + //return fInfo->name != NULL ? [NSString stringWithUTF8String: fInfo->name] : fHashString; } - (BOOL) isFolder