Ignore:
Timestamp:
Jul 7, 2012, 1:47:12 AM (9 years ago)
Author:
livings124
Message:

#2353 Add an option to the inspector to remove transfers from the list when seeding completes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r13354 r13377  
    18821882- (void) torrentFinishedSeeding: (NSNotification *) notification
    18831883{
    1884     Torrent * torrent = [notification object];
    1885    
    1886     [self fullUpdateUI];
    1887    
    1888     if ([[fTableView selectedTorrents] containsObject: torrent])
    1889     {
    1890         [fInfoController updateInfoStats];
    1891         [fInfoController updateOptions];
    1892     }
     1884    Torrent * torrent = [[notification object] retain];
    18931885   
    18941886    if (!fSoundPlaying && [fDefaults boolForKey: @"PlaySeedingSound"])
     
    19101902   
    19111903    [GrowlApplicationBridge notifyWithTitle: NSLocalizedString(@"Seeding Complete", "Growl notification title")
    1912                         description: [torrent name] notificationName: GROWL_SEEDING_COMPLETE
    1913                         iconData: nil priority: 0 isSticky: NO clickContext: clickContext];
     1904                                description: [torrent name] notificationName: GROWL_SEEDING_COMPLETE
     1905                                   iconData: nil priority: 0 isSticky: NO clickContext: clickContext];
     1906   
     1907    //removing for the list calls fullUpdateUI
     1908    if ([torrent removeWhenFinishSeeding])
     1909        [self confirmRemoveTorrents: [[NSArray arrayWithObject: torrent] retain] deleteData: NO];
     1910    else
     1911    {
     1912        [self fullUpdateUI];
     1913       
     1914        if ([[fTableView selectedTorrents] containsObject: torrent])
     1915        {
     1916            [fInfoController updateInfoStats];
     1917            [fInfoController updateOptions];
     1918        }
     1919    }
     1920   
     1921    [torrent release];
    19141922}
    19151923
Note: See TracChangeset for help on using the changeset viewer.