projects
/
u
/
mdw
/
putty
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ee0cb6
)
Fix a couple of stupid typos in the session-saving code.
author
simon
<simon@cda61777-01e9-0310-a592-d414129be87e>
Thu, 6 Mar 2003 18:49:05 +0000
(18:49 +0000)
committer
simon
<simon@cda61777-01e9-0310-a592-d414129be87e>
Thu, 6 Mar 2003 18:49:05 +0000
(18:49 +0000)
git-svn-id: svn://svn.tartarus.org/sgt/putty@2916
cda61777
-01e9-0310-a592-
d414129be87e
config.c
patch
|
blob
|
blame
|
history
diff --git
a/config.c
b/config.c
index
536e94a
..
f41e9ec
100644
(file)
--- 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);