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:
parent
acce3b2cda
commit
9e9eb89784
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue