1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-02 03:52:49 -05:00

Ahem. Actually _checking_ that asynchronous askalg() worked would

have been helpful. Since async verify_ssh_host_key() worked, I
didn't think anything else could go wrong. How wrong I was.

[originally from svn r5331]
This commit is contained in:
Simon Tatham
2005-02-17 18:56:37 +00:00
parent 8574822b9b
commit fceaa2e4a7
3 changed files with 115 additions and 90 deletions

View File

@ -320,7 +320,7 @@ static void askalg_callback(void *ctx, int result)
{
struct algstate *state = (struct algstate *)ctx;
state->callback(state->ctx, result == 0);
state->callback(state->ctx, result == NSAlertFirstButtonReturn);
sfree(state);
}
@ -343,7 +343,7 @@ int askalg(void *frontend, const char *algtype, const char *algname,
state->callback = callback;
state->ctx = ctx;
alert = [NSAlert alloc];
alert = [[NSAlert alloc] init];
[alert setInformativeText:[NSString stringWithCString:text]];
[alert addButtonWithTitle:@"Yes"];
[alert addButtonWithTitle:@"No"];