Changeset 9350
- Timestamp:
- Oct 21, 2009, 11:13:02 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/Torrent.m
r9349 r9350 254 254 255 255 //when the data first appears, update time machine exclusion 256 #warning perhaps always check to get if the file is moved through rpc257 256 if (!fTimeMachineExclude) 258 257 [self updateTimeMachineExclude]; … … 481 480 [alert release]; 482 481 } 482 483 [self updateTimeMachineExclude]; 483 484 } 484 485 … … 1460 1461 - (void) updateTimeMachineExclude 1461 1462 { 1462 NSString * newLocation = [self dataLocation]; 1463 1464 if (fTimeMachineExclude && newLocation && [fTimeMachineExclude isEqualToString: newLocation] && ![self allDownloaded]) 1465 return; 1463 NSString * newLocation = nil; 1464 BOOL checkedNewLocation = NO; 1466 1465 1467 1466 if (fTimeMachineExclude) 1468 1467 { 1468 //long-winded way of saying "return if the locations are the same and not all is downloaded" 1469 if (![self allDownloaded]) 1470 { 1471 newLocation = [self dataLocation]; 1472 checkedNewLocation = YES; 1473 1474 if ([fTimeMachineExclude isEqualToString: newLocation]) 1475 return; 1476 } 1477 1469 1478 [self setTimeMachineExclude: NO forPath: fTimeMachineExclude]; 1470 1479 [fTimeMachineExclude release]; … … 1472 1481 } 1473 1482 1474 if (newLocation && ![self allDownloaded]) 1475 { 1476 [self setTimeMachineExclude: YES forPath: newLocation]; 1477 [fTimeMachineExclude release]; 1478 fTimeMachineExclude = [newLocation retain]; 1483 if (![self allDownloaded]) 1484 { 1485 if (!checkedNewLocation) 1486 { 1487 newLocation = [self dataLocation]; 1488 checkedNewLocation = YES; 1489 } 1490 1491 if (newLocation) 1492 { 1493 [self setTimeMachineExclude: YES forPath: newLocation]; 1494 [fTimeMachineExclude release]; 1495 fTimeMachineExclude = [newLocation retain]; 1496 } 1479 1497 } 1480 1498 } … … 1716 1734 fStat = tr_torrentStat(fHandle); //don't call update yet to avoid auto-stop 1717 1735 1718 BOOL canMove;1719 1736 switch ([status intValue]) 1720 1737 {
Note: See TracChangeset
for help on using the changeset viewer.