fix #239: avoid a loop when trying to cancel adding a torrent in the choose location dialog
This commit is contained in:
parent
781c557e52
commit
0554c3f391
|
@ -791,6 +791,7 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[files removeObjectAtIndex: 0];
|
||||||
NSOpenPanel * panel = [NSOpenPanel openPanel];
|
NSOpenPanel * panel = [NSOpenPanel openPanel];
|
||||||
|
|
||||||
[panel setPrompt: NSLocalizedString(@"Select", "Open torrent -> prompt")];
|
[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 \"%@\"",
|
[panel setMessage: [NSString stringWithFormat: NSLocalizedString(@"Select the download folder for \"%@\"",
|
||||||
"Open torrent -> select destination folder"), [NSString stringWithUTF8String: info.name]]];
|
"Open torrent -> select destination folder"), [NSString stringWithUTF8String: info.name]]];
|
||||||
[panel setMessage: @"Select the download folder "];
|
|
||||||
|
|
||||||
NSDictionary * dictionary = [[NSDictionary alloc] initWithObjectsAndKeys: [torrentPath retain], @"Path",
|
NSDictionary * dictionary = [[NSDictionary alloc] initWithObjectsAndKeys: [torrentPath retain], @"Path",
|
||||||
files, @"Files", [NSNumber numberWithBool: delete], @"Delete", nil];
|
files, @"Files", [NSNumber numberWithBool: delete], @"Delete", nil];
|
||||||
|
|
|
@ -138,7 +138,6 @@ static uint32_t kRed = BE(0xFF6450FF), //255, 100, 80
|
||||||
|
|
||||||
- (NSDictionary *) history
|
- (NSDictionary *) history
|
||||||
{
|
{
|
||||||
#warning not all being stored
|
|
||||||
NSMutableDictionary * history = [NSMutableDictionary dictionaryWithObjectsAndKeys:
|
NSMutableDictionary * history = [NSMutableDictionary dictionaryWithObjectsAndKeys:
|
||||||
[NSNumber numberWithBool: fPublicTorrent], @"PublicCopy",
|
[NSNumber numberWithBool: fPublicTorrent], @"PublicCopy",
|
||||||
[self hashString], @"TorrentHash",
|
[self hashString], @"TorrentHash",
|
||||||
|
@ -205,6 +204,7 @@ static uint32_t kRed = BE(0xFF6450FF), //255, 100, 80
|
||||||
if (fPublicTorrentLocation)
|
if (fPublicTorrentLocation)
|
||||||
[fPublicTorrentLocation release];
|
[fPublicTorrentLocation release];
|
||||||
|
|
||||||
|
#warning look into
|
||||||
tr_torrentRemoveSaved(fHandle);
|
tr_torrentRemoveSaved(fHandle);
|
||||||
|
|
||||||
[fDateAdded release];
|
[fDateAdded release];
|
||||||
|
|
Loading…
Reference in New Issue