fix auto-selection of hostname text box

This commit is contained in:
cy384 2020-10-21 21:25:31 -04:00
parent cc7db28493
commit 08e2c78e57
1 changed files with 3 additions and 3 deletions

View File

@ -1045,9 +1045,6 @@ int intro_dialog(void)
DialogPtr dlg = GetNewDialog(DLOG_CONNECT, 0, (WindowPtr)-1);
InitCursor();
// select all text in dialog item 4 (the hostname one)
SelectDialogItemText(dlg, 4, 0, 32767);
DialogItemType type;
Handle itemH;
Rect box;
@ -1062,6 +1059,9 @@ int intro_dialog(void)
address_text_box = (ControlHandle)itemH;
SetDialogItemText((Handle)address_text_box, (ConstStr255Param)prefs.hostname);
// select all text in hostname dialog item
SelectDialogItemText(dlg, 4, 0, 32767);
ControlHandle port_text_box;
GetDialogItem(dlg, 5, &type, &itemH, &box);
port_text_box = (ControlHandle)itemH;