From 6047380d7af7c62cb088ec5929243175043781e6 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Mon, 20 Nov 2006 01:43:51 +0000 Subject: [PATCH] a clearer explanation when suggested name isn't a torrent --- macosx/Controller.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/macosx/Controller.m b/macosx/Controller.m index cbbcdd3f3..45c8721f3 100644 --- a/macosx/Controller.m +++ b/macosx/Controller.m @@ -490,15 +490,15 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy } - (void) download: (NSURLDownload *) download decideDestinationWithSuggestedFilename: (NSString *) suggestedName -{ +{NSLog(suggestedName); if ([[suggestedName pathExtension] caseInsensitiveCompare: @"torrent"] != NSOrderedSame) { [download cancel]; NSRunAlertPanel(NSLocalizedString(@"Torrent download failed", @"Download not a torrent -> title"), [NSString stringWithFormat: - NSLocalizedString(@"It appears that the file from %@ is not a torrent file.", - @"Download not a torrent -> message"), [[[download request] URL] absoluteString]], + NSLocalizedString(@"It appears that the file \"%@\" from %@ is not a torrent file.", + @"Download not a torrent -> message"), suggestedName, [[[download request] URL] absoluteString]], NSLocalizedString(@"OK", @"Download not a torrent -> button"), nil, nil); [download release];