From 3082f7e8bede374d6955c7ce3ae1050551aa6abc Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Wed, 24 Jan 2001 09:29:55 +0000 Subject: [PATCH] Ahem. The log-file Browse button should set cfg.logfilename and not cfg.keyfile. Next time I copy and paste a huge chunk of code, I should take more care about it :-/ [originally from svn r893] --- windlg.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/windlg.c b/windlg.c index 6b7314d4..629e6892 100644 --- a/windlg.c +++ b/windlg.c @@ -1570,15 +1570,15 @@ static int GenericMainDlgProc (HWND hwnd, UINT msg, of.lpstrFilter = "All Files\0*\0\0\0"; of.lpstrCustomFilter = NULL; of.nFilterIndex = 1; - of.lpstrFile = filename; strcpy(filename, cfg.keyfile); + of.lpstrFile = filename; strcpy(filename, cfg.logfilename); of.nMaxFile = sizeof(filename); of.lpstrFileTitle = NULL; of.lpstrInitialDir = NULL; of.lpstrTitle = "Select session log file"; of.Flags = 0; if (GetSaveFileName(&of)) { - strcpy(cfg.keyfile, filename); - SetDlgItemText (hwnd, IDC_LGFEDIT, cfg.keyfile); + strcpy(cfg.logfilename, filename); + SetDlgItemText (hwnd, IDC_LGFEDIT, cfg.logfilename); } break; case IDC_LSTATOFF: