1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-01 19:42:48 -05:00

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.)

[originally from svn r5609]
This commit is contained in:
Jacob Nevins
2005-04-07 01:36:28 +00:00
parent a068889389
commit 52a17ab04a
9 changed files with 89 additions and 69 deletions

View File

@ -80,7 +80,6 @@ struct alert_queue {
{
NSOutlineView *treeview;
struct controlbox *ctrlbox;
struct sesslist sl;
void *dv;
Config cfg;
}

View File

@ -123,10 +123,8 @@
int hmin = 0;
int panelht = 0;
get_sesslist(&sl, TRUE);
ctrlbox = ctrl_new_box();
setup_config_box(ctrlbox, &sl, FALSE /*midsession*/, aCfg.protocol,
setup_config_box(ctrlbox, FALSE /*midsession*/, aCfg.protocol,
0 /* protcfginfo */);
unix_setup_config_box(ctrlbox, FALSE /*midsession*/);