From: Simon Tatham Date: Thu, 6 Mar 2003 18:49:05 +0000 (+0000) Subject: Fix a couple of stupid typos in the session-saving code. X-Git-Tag: 0.54~365 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=88d0a45b0f2c685d7135d7d384922bceb2ed7333;p=PuTTY.git Fix a couple of stupid typos in the session-saving code. [originally from svn r2916] --- diff --git a/config.c b/config.c index 536e94ab..f41e9ec4 100644 --- a/config.c +++ b/config.c @@ -274,7 +274,7 @@ static void sessionsaver_handler(union control *ctrl, void *dlg, } else if (ctrl == ssd->savebutton) { int isdef = !strcmp(ssd->savedsession, "Default Settings"); if (!ssd->savedsession[0]) { - int i = dlg_listbox_index(ctrl, dlg); + int i = dlg_listbox_index(ssd->listbox, dlg); if (i < 0) { dlg_beep(dlg); return; @@ -288,7 +288,7 @@ static void sessionsaver_handler(union control *ctrl, void *dlg, ssd->savedsession[0] = '\0'; } } - save_settings(ssd->savedsession, isdef, cfg); + save_settings(ssd->savedsession, !isdef, cfg); get_sesslist(ssd->sesslist, FALSE); get_sesslist(ssd->sesslist, TRUE); dlg_refresh(ssd->editbox, dlg);