Changeset 11539
- Timestamp:
- Dec 16, 2010, 3:39:11 AM (12 years ago)
- Location:
- trunk/macosx
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/Controller.m
r11508 r11539 987 987 else 988 988 { 989 [torrent closeRemoveTorrent ];989 [torrent closeRemoveTorrent: NO]; 990 990 [torrent release]; 991 991 } … … 1055 1055 else 1056 1056 { 1057 [torrent closeRemoveTorrent ];1057 [torrent closeRemoveTorrent: NO]; 1058 1058 [torrent release]; 1059 1059 } … … 1458 1458 [fTableView removeCollapsedGroup: [torrent groupValue]]; 1459 1459 1460 if (deleteData) 1461 [torrent trashData]; 1462 1463 [torrent closeRemoveTorrent]; 1460 [torrent closeRemoveTorrent: deleteData]; 1464 1461 } 1465 1462 -
trunk/macosx/Torrent.h
r11175 r11539 65 65 - (NSDictionary *) history; 66 66 67 - (void) closeRemoveTorrent ;67 - (void) closeRemoveTorrent: (BOOL) trashFiles; 68 68 69 69 - (void) changeDownloadFolderBeforeUsing: (NSString *) folder; … … 120 120 121 121 + (void) trashFile: (NSString *) path; 122 - (void) trashData;123 122 - (void) moveTorrentDataFileTo: (NSString *) folder; 124 123 - (void) copyTorrentFileTo: (NSString *) path; -
trunk/macosx/Torrent.m
r11409 r11539 228 228 } 229 229 230 - (void) closeRemoveTorrent 230 - (void) closeRemoveTorrent: (BOOL) trashFiles 231 231 { 232 232 //allow the file to be indexed by Time Machine … … 238 238 } 239 239 240 tr_torrentRemove(fHandle );240 tr_torrentRemove(fHandle, trashFiles, trashDataFile); 241 241 } 242 242 … … 502 502 NSLog(@"Could not trash %@: %@", path, [error localizedDescription]); 503 503 } 504 }505 506 - (void) trashData507 {508 tr_torrentDeleteLocalData(fHandle, trashDataFile);509 504 } 510 505
Note: See TracChangeset
for help on using the changeset viewer.