Changeset 7625
- Timestamp:
- Jan 6, 2009, 2:07:55 AM (12 years ago)
- Location:
- trunk/macosx
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/Controller.m
r7571 r7625 2066 2066 2067 2067 [fTableView selectValues: selectedValues]; 2068 #warning still happens anyway? 2069 //removed because it made the inspector reset (noticeable when a transfer with web seeds is selected) 2070 //[self resetInfo]; //if group is already selected, but the torrents in it change 2068 [self resetInfo]; //if group is already selected, but the torrents in it change 2071 2069 2072 2070 [self setBottomCountText: groupRows || filterStatus || filterGroup || filterText]; -
trunk/macosx/MessageWindowController.m
r7516 r7625 234 234 fAttributes = [[[[column dataCell] attributedStringValue] attributesAtIndex: 0 effectiveRange: NULL] retain]; 235 235 236 CGFloat count = floorf([[[fMessages objectAtIndex: row] objectForKey: @"Message"] sizeWithAttributes: fAttributes].width237 / [column width]);238 return [tableView rowHeight] * (count + 1.0 f);236 const CGFloat count = floorf([[[fMessages objectAtIndex: row] objectForKey: @"Message"] sizeWithAttributes: fAttributes].width 237 / [column width]); 238 return [tableView rowHeight] * (count + 1.0); 239 239 } 240 240 -
trunk/macosx/PrefsController.m
r7514 r7625 435 435 - (void) setPeersGlobal: (id) sender 436 436 { 437 int count = [sender intValue];437 const int count = [sender intValue]; 438 438 [fDefaults setInteger: count forKey: @"PeersTotal"]; 439 439 tr_sessionSetPeerLimit(fHandle, count); … … 442 442 - (void) setPeersTorrent: (id) sender 443 443 { 444 int count = [sender intValue];444 const int count = [sender intValue]; 445 445 [fDefaults setInteger: count forKey: @"PeersTorrent"]; 446 446 } … … 453 453 - (void) setEncryptionMode: (id) sender 454 454 { 455 tr_sessionSetEncryption(fHandle, [fDefaults boolForKey: @"EncryptionPrefer"] ? 456 ([fDefaults boolForKey: @"EncryptionRequire"] ? TR_ENCRYPTION_REQUIRED : TR_ENCRYPTION_PREFERRED) : TR_CLEAR_PREFERRED); 455 const tr_encryption_mode mode = [fDefaults boolForKey: @"EncryptionPrefer"] ? 456 ([fDefaults boolForKey: @"EncryptionRequire"] ? TR_ENCRYPTION_REQUIRED : TR_ENCRYPTION_PREFERRED) : TR_CLEAR_PREFERRED; 457 tr_sessionSetEncryption(fHandle, mode); 457 458 } 458 459 459 460 - (void) setBlocklistEnabled: (id) sender 460 461 { 461 BOOL enable = [sender state] == NSOnState;462 const BOOL enable = [sender state] == NSOnState; 462 463 [fDefaults setBool: enable forKey: @"Blocklist"]; 463 464 tr_blocklistSetEnabled(fHandle, enable); -
trunk/macosx/Torrent.m
r7599 r7625 778 778 } 779 779 780 //used by auto group rules 780 781 - (NSString *) trackerList 781 782 { … … 1432 1433 have += fFileStat[index].bytesCompleted; 1433 1434 1434 NSAssert([node size], @"director in torrent file has size 0");1435 NSAssert([node size], @"directory in torrent file has size 0"); 1435 1436 return (CGFloat)have / [node size]; 1436 1437 }
Note: See TracChangeset
for help on using the changeset viewer.