mirror of https://github.com/cy384/ssheven.git
fix key/password radio buttons
This commit is contained in:
parent
c68d921d6a
commit
1e4754c66a
10
ssheven.c
10
ssheven.c
|
@ -647,14 +647,16 @@ int intro_dialog(char* hostname, char* username, char* password)
|
||||||
GetDialogItemText((Handle)port_text_box, (unsigned char *)hostname+hostname[0]+1);
|
GetDialogItemText((Handle)port_text_box, (unsigned char *)hostname+hostname[0]+1);
|
||||||
hostname[hostname[0]+1] = ':';
|
hostname[hostname[0]+1] = ':';
|
||||||
|
|
||||||
|
// if we hit cancel, 0
|
||||||
|
if (item == 8) return 0;
|
||||||
|
|
||||||
|
int use_password = GetControlValue(password_radio);
|
||||||
|
|
||||||
// clean it up
|
// clean it up
|
||||||
DisposeDialog(dlg);
|
DisposeDialog(dlg);
|
||||||
FlushEvents(everyEvent, -1);
|
FlushEvents(everyEvent, -1);
|
||||||
|
|
||||||
// if we hit cancel, 0
|
if (use_password)
|
||||||
if (item == 8) return 0;
|
|
||||||
|
|
||||||
if (GetControlValue(password_radio) == 1)
|
|
||||||
{
|
{
|
||||||
return password_dialog();
|
return password_dialog();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue