Patch from Robert de Bath: blank the saved-session name edit box
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Tue, 21 Nov 2000 19:00:11 +0000 (19:00 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Tue, 21 Nov 2000 19:00:11 +0000 (19:00 +0000)
when loading `Default Settings'.

git-svn-id: svn://svn.tartarus.org/sgt/putty@806 cda61777-01e9-0310-a592-d414129be87e

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) {
                /*