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

This commit is contained in:
Mitchell Livingston 2009-12-08 03:36:26 +00:00
parent acce3b2cda
commit 9e9eb89784
1 changed files with 7 additions and 1 deletions

View File

@ -871,7 +871,13 @@ typedef enum
return;
Torrent * torrent= [fTorrents objectAtIndex: 0];
if (![torrent addTrackerToNewTier: object])
BOOL added = NO;
for (NSString * tracker in [object componentsSeparatedByString: @"\n"])
if ([torrent addTrackerToNewTier: tracker])
added = YES;
if (!added)
NSBeep();
//reset table with either new or old value