If a new session was saved from Change Settings, a side-effect on Windows was
authorjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Thu, 7 Apr 2005 01:36:28 +0000 (01:36 +0000)
committerjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Thu, 7 Apr 2005 01:36:28 +0000 (01:36 +0000)
commit12745e35f6aa5ba7b1a89afe6d5249d8ca46dd37
tree9ef842b3a8bf036fa624b0fe31165cd63237f5d5
parentc6fa3909a3c76e82290d37c858808d94576f663e
If a new session was saved from Change Settings, a side-effect on Windows was
that the global `sesslist' got out of sync with the saved-sessions submenu,
causing the latter to launch the wrong sessions.

Also, Change Settings wasn't getting a fresh session list, so if the set of
sessions had changed since session startup it wouldn't reflect that (at least
until a session was saved). Fixed (on all platforms).

Therefore, since the global sesslist didn't seem to be useful, I've got rid
of it; config.c creates one as needed, as do the frontends. (Not tried
compiling Mac changes.)

Also, we now build the saved-sessions submenu on demand on Windows and Unix.
(This should probably also be done on the Mac.)

git-svn-id: svn://svn.tartarus.org/sgt/putty@5609 cda61777-01e9-0310-a592-d414129be87e
config.c
mac/macdlg.c
macosx/osxclass.h
macosx/osxdlg.m
putty.h
unix/gtkdlg.c
unix/gtkwin.c
windows/windlg.c
windows/window.c