Patch from Robert de Bath: blank the saved-session name edit box
[u/mdw/putty] / windlg.c
index 575642b..ca9e7f5 100644 (file)
--- a/windlg.c
+++ b/windlg.c
@@ -1164,6 +1164,8 @@ static int GenericMainDlgProc (HWND hwnd, UINT msg,
                init_dlg_ctrls(hwnd);
                 if (!isdef)
                     SetDlgItemText(hwnd, IDC_SESSEDIT, sessions[n]);
+               else
+                    SetDlgItemText(hwnd, IDC_SESSEDIT, "");
            }
            if (LOWORD(wParam) == IDC_SESSLIST) {
                /*