Changeset 7484
- Timestamp:
- Dec 24, 2008, 1:55:33 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/Torrent.m
r7483 r7484 56 56 - (void) updateAllTrackers: (NSMutableArray *) trackers; 57 57 58 -(void) trashFile: (NSString *) path;58 + (void) trashFile: (NSString *) path; 59 59 60 60 - (void) setTimeMachineExclude: (BOOL) exclude forPath: (NSString *) path; … … 66 66 [(Torrent *)torrentData performSelectorOnMainThread: @selector(completenessChange:) 67 67 withObject: [[NSNumber alloc] initWithInt: status] waitUntilDone: NO]; 68 } 69 70 int trashDataFile(const char * filename) 71 { 72 [Torrent trashFile: [NSString stringWithUTF8String: filename]]; 73 return 0; 68 74 } 69 75 … … 90 96 } 91 97 else if (!fPublicTorrent) 92 [ selftrashFile: path];98 [Torrent trashFile: path]; 93 99 else; 94 100 } … … 454 460 - (void) trashData 455 461 { 456 [self trashFile: [self dataLocation]];462 tr_torrentDeleteLocalData(fHandle, trashDataFile); 457 463 } 458 464 … … 461 467 if (fPublicTorrent) 462 468 { 463 [ selftrashFile: fPublicTorrentLocation];469 [Torrent trashFile: fPublicTorrentLocation]; 464 470 [fPublicTorrentLocation release]; 465 471 fPublicTorrentLocation = nil; … … 1969 1975 } 1970 1976 1971 -(void) trashFile: (NSString *) path1977 + (void) trashFile: (NSString *) path 1972 1978 { 1973 1979 //attempt to move to trash
Note: See TracChangeset
for help on using the changeset viewer.