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];

View File

@ -138,7 +138,6 @@ static uint32_t kRed = BE(0xFF6450FF), //255, 100, 80
- (NSDictionary *) history
{
#warning not all being stored
NSMutableDictionary * history = [NSMutableDictionary dictionaryWithObjectsAndKeys:
[NSNumber numberWithBool: fPublicTorrent], @"PublicCopy",
[self hashString], @"TorrentHash",
@ -205,6 +204,7 @@ static uint32_t kRed = BE(0xFF6450FF), //255, 100, 80
if (fPublicTorrentLocation)
[fPublicTorrentLocation release];
#warning look into
tr_torrentRemoveSaved(fHandle);
[fDateAdded release];