From 9e9eb89784932069886743351935767419879737 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Tue, 8 Dec 2009 03:36:26 +0000 Subject: [PATCH] support pasting a list of trackers in the text field after pressing the tracker tab's + button --- macosx/InfoWindowController.m | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/macosx/InfoWindowController.m b/macosx/InfoWindowController.m index 03280685d..78204ba89 100644 --- a/macosx/InfoWindowController.m +++ b/macosx/InfoWindowController.m @@ -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