Changeset 9684


Ignore:
Timestamp:
Dec 8, 2009, 3:36:26 AM (12 years ago)
Author:
livings124
Message:

support pasting a list of trackers in the text field after pressing the tracker tab's + button

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/InfoWindowController.m

    r9675 r9684  
    872872   
    873873    Torrent * torrent= [fTorrents objectAtIndex: 0];
    874     if (![torrent addTrackerToNewTier: object])
     874   
     875    BOOL added = NO;
     876    for (NSString * tracker in [object componentsSeparatedByString: @"\n"])
     877        if ([torrent addTrackerToNewTier: tracker])
     878            added = YES;
     879   
     880    if (!added)
    875881        NSBeep();
    876882   
Note: See TracChangeset for help on using the changeset viewer.