From 560e77cccbb086df428c94d6c29356305c4aa77b Mon Sep 17 00:00:00 2001 From: cy384 Date: Mon, 14 Sep 2020 20:01:19 -0400 Subject: [PATCH] fix connection dialog cancel behavior --- ssheven.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ssheven.c b/ssheven.c index 165f726..42766a6 100644 --- a/ssheven.c +++ b/ssheven.c @@ -647,15 +647,15 @@ int intro_dialog(char* hostname, char* username, char* password) GetDialogItemText((Handle)port_text_box, (unsigned char *)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 DisposeDialog(dlg); FlushEvents(everyEvent, -1); + // if we hit cancel, 0 + if (item == 8) return 0; + if (use_password) { return password_dialog();