X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=unix%2Fuxcfg.c;h=582b45d9246f12e14a51ca85f6cf310da2b0580d;hb=6b362191f1a2c6897e7b7bfa80beec1cd1f722fd;hp=1bf58b79995e7e340ef004132844c229d10ba520;hpb=03fa61025b27384c5d64aee63f9b0a7fd917bb24;p=PuTTY.git diff --git a/unix/uxcfg.c b/unix/uxcfg.c index 1bf58b79..582b45d9 100644 --- a/unix/uxcfg.c +++ b/unix/uxcfg.c @@ -130,16 +130,15 @@ void unix_setup_config_box(struct controlbox *b, int midsession, void *win) * Unix supports a local-command proxy. This also means we must * adjust the text on the `Telnet command' control. */ - s = ctrl_getset(b, "Connection/Proxy", "basics", "Proxy basics"); - { + if (!midsession) { int i; + s = ctrl_getset(b, "Connection/Proxy", "basics", NULL); for (i = 0; i < s->ncontrols; i++) { c = s->ctrls[i]; if (c->generic.type == CTRL_RADIO && c->generic.context.i == offsetof(Config, proxy_type)) { assert(c->generic.handler == dlg_stdradiobutton_handler); c->radio.nbuttons++; - c->radio.ncolumns++; c->radio.buttons = sresize(c->radio.buttons, c->radio.nbuttons, char *); c->radio.buttons[c->radio.nbuttons-1] = @@ -150,11 +149,7 @@ void unix_setup_config_box(struct controlbox *b, int midsession, void *win) break; } } - } - s = ctrl_getset(b, "Connection/Proxy", "misc", - "Miscellaneous proxy settings"); - { - int i; + for (i = 0; i < s->ncontrols; i++) { c = s->ctrls[i]; if (c->generic.type == CTRL_EDITBOX &&