Changeset 11539


Ignore:
Timestamp:
Dec 16, 2010, 3:39:11 AM (11 years ago)
Author:
livings124
Message:

#3675 "Not all .part files are removed" - Mac patch

Location:
trunk/macosx
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r11508 r11539  
    987987    else
    988988    {
    989         [torrent closeRemoveTorrent];
     989        [torrent closeRemoveTorrent: NO];
    990990        [torrent release];
    991991    }
     
    10551055    else
    10561056    {
    1057         [torrent closeRemoveTorrent];
     1057        [torrent closeRemoveTorrent: NO];
    10581058        [torrent release];
    10591059    }
     
    14581458        [fTableView removeCollapsedGroup: [torrent groupValue]];
    14591459       
    1460         if (deleteData)
    1461             [torrent trashData];
    1462        
    1463         [torrent closeRemoveTorrent];
     1460        [torrent closeRemoveTorrent: deleteData];
    14641461    }
    14651462   
  • trunk/macosx/Torrent.h

    r11175 r11539  
    6565- (NSDictionary *) history;
    6666
    67 - (void) closeRemoveTorrent;
     67- (void) closeRemoveTorrent: (BOOL) trashFiles;
    6868
    6969- (void) changeDownloadFolderBeforeUsing: (NSString *) folder;
     
    120120
    121121+ (void) trashFile: (NSString *) path;
    122 - (void) trashData;
    123122- (void) moveTorrentDataFileTo: (NSString *) folder;
    124123- (void) copyTorrentFileTo: (NSString *) path;
  • trunk/macosx/Torrent.m

    r11409 r11539  
    228228}
    229229
    230 - (void) closeRemoveTorrent
     230- (void) closeRemoveTorrent: (BOOL) trashFiles
    231231{
    232232    //allow the file to be indexed by Time Machine
     
    238238    }
    239239   
    240     tr_torrentRemove(fHandle);
     240    tr_torrentRemove(fHandle, trashFiles, trashDataFile);
    241241}
    242242
     
    502502            NSLog(@"Could not trash %@: %@", path, [error localizedDescription]);
    503503    }
    504 }
    505 
    506 - (void) trashData
    507 {
    508     tr_torrentDeleteLocalData(fHandle, trashDataFile);
    509504}
    510505
Note: See TracChangeset for help on using the changeset viewer.