mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-25 01:02:24 +00:00
Fix a couple of stupid typos in the session-saving code.
[originally from svn r2916]
This commit is contained in:
parent
3e311e94fc
commit
88d0a45b0f
4
config.c
4
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);
|
||||
|
Loading…
Reference in New Issue
Block a user