diff --git a/macosx/Controller.m b/macosx/Controller.m index 75ab08ced..5a5284ab1 100644 --- a/macosx/Controller.m +++ b/macosx/Controller.m @@ -1871,8 +1871,7 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy if (!(importedNames = [[NSFileManager defaultManager] directoryContentsAtPath: path])) return; - //only import those that have not been imported yet - #warning no mutable array + //only check files that have not been checked yet NSMutableArray * newNames = [importedNames mutableCopy]; [newNames removeObjectsInArray: fAutoImportedNames]; [fAutoImportedNames setArray: importedNames]; diff --git a/macosx/InfoWindowController.m b/macosx/InfoWindowController.m index 7f87c0691..675284d02 100644 --- a/macosx/InfoWindowController.m +++ b/macosx/InfoWindowController.m @@ -682,7 +682,7 @@ else if ([ident isEqualToString: @"Client"]) return [peer objectForKey: @"Client"]; else if ([ident isEqualToString: @"Progress"]) - return [[peer objectForKey: @"Connected"] boolValue] ? [peer objectForKey: @"Progress"] : 0; + return [[peer objectForKey: @"Connected"] boolValue] ? [peer objectForKey: @"Progress"] : -1; else if ([ident isEqualToString: @"UL To"]) return [[peer objectForKey: @"Connected"] boolValue] && [[peer objectForKey: @"UL To"] boolValue] ? [NSString stringForSpeedAbbrev: [[peer objectForKey: @"UL To Rate"] floatValue]] : @""; diff --git a/macosx/Torrent.m b/macosx/Torrent.m index 53d7ce211..fa10075d8 100644 --- a/macosx/Torrent.m +++ b/macosx/Torrent.m @@ -994,7 +994,6 @@ static uint32_t kRed = BE(0xFF6450FF), //255, 100, 80 [NSNumber numberWithBool: peer->isConnected], @"Connected", [NSNumber numberWithInt: peer->from], @"From", [NSString stringWithCString: (char *) peer->addr encoding: NSUTF8StringEncoding], @"IP", - [NSString stringWithCString: (char *) peer->client encoding: NSUTF8StringEncoding], @"Client", [NSNumber numberWithInt: peer->port], @"Port", nil]; if (peer->isConnected)