1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-24 08:43:27 +00:00

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

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