From d4eb3c018ee16dfc08cd72c69e96ea463605575d Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Tue, 19 Feb 2008 05:09:52 +0000 Subject: [PATCH] remove cache file when removing a transfer --- NEWS | 2 ++ macosx/Torrent.m | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index 99ed09857..318817851 100644 --- a/NEWS +++ b/NEWS @@ -1,6 +1,8 @@ NEWS file for Transmission 1.10 (2008/xx/yy) +- All Platforms: + + Removing transfers will remove the associated cache file - Mac: + Window when adding torrents to select files and other settings + Leopard: Group dividers diff --git a/macosx/Torrent.m b/macosx/Torrent.m index 2570d0b09..09dd870b8 100644 --- a/macosx/Torrent.m +++ b/macosx/Torrent.m @@ -202,8 +202,7 @@ void completenessChangeCallback(tr_torrent * torrent, cp_status_t status, void * //allow the file to be index by Time Machine [self setTimeMachineExclude: NO forPath: [[self downloadFolder] stringByAppendingPathComponent: [self name]]]; - tr_torrentRemoveSaved(fHandle); - tr_torrentClose(fHandle); + tr_torrentDelete(fHandle); } - (void) changeIncompleteDownloadFolder: (NSString *) folder