Changeset 2237


Ignore:
Timestamp:
Jun 29, 2007, 9:25:32 PM (15 years ago)
Author:
livings124
Message:

fix #240: make sure internally-saved torrent files are only deleted when the torrent is removed, not when quitting...hopefully this will also mean that old torrents won't remain forever in app support

Location:
trunk/macosx
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r2236 r2237  
    11161116            lowestOrderValue = currentOrderValue;
    11171117       
     1118        [torrent removeTorrent];
    11181119        [fTorrents removeObject: torrent];
    11191120        [fDisplayedTorrents removeObject: torrent];
  • trunk/macosx/Torrent.h

    r2225 r2237  
    7676- (NSDictionary *) history;
    7777
     78- (void) removeTorrent;
     79
    7880- (void) changeIncompleteDownloadFolder: (NSString *) folder;
    7981- (void) changeDownloadFolder: (NSString *) folder;
  • trunk/macosx/Torrent.m

    r2236 r2237  
    205205            [fPublicTorrentLocation release];
    206206       
    207         #warning look into
    208         tr_torrentRemoveSaved(fHandle);
    209        
    210207        [fDateAdded release];
    211208                if (fDateCompleted)
     
    233230    }
    234231    [super dealloc];
     232}
     233
     234- (void) removeTorrent
     235{
     236    tr_torrentRemoveSaved(fHandle);
    235237}
    236238
Note: See TracChangeset for help on using the changeset viewer.