fix #239: avoid a loop when trying to cancel adding a torrent in the choose location dialog

This commit is contained in:
Mitchell Livingston
2007-06-29 21:13:55 +00:00
parent 781c557e52
commit 0554c3f391
2 changed files with 2 additions and 2 deletions

View File

@@ -791,6 +791,7 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy
return;
}
[files removeObjectAtIndex: 0];
NSOpenPanel * panel = [NSOpenPanel openPanel];
[panel setPrompt: NSLocalizedString(@"Select", "Open torrent -> prompt")];
@@ -801,7 +802,6 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy
[panel setMessage: [NSString stringWithFormat: NSLocalizedString(@"Select the download folder for \"%@\"",
"Open torrent -> select destination folder"), [NSString stringWithUTF8String: info.name]]];
[panel setMessage: @"Select the download folder "];
NSDictionary * dictionary = [[NSDictionary alloc] initWithObjectsAndKeys: [torrentPath retain], @"Path",
files, @"Files", [NSNumber numberWithBool: delete], @"Delete", nil];