mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-04-21 04:55:02 -05:00
Avoid creating the Session/hostport control set in mid-session.
[originally from svn r7477]
This commit is contained in:
parent
ce6349bd89
commit
ec1e37fb55
16
sercfg.c
16
sercfg.c
@ -104,16 +104,18 @@ void ser_setup_config_box(struct controlbox *b, int midsession,
|
|||||||
struct controlset *s;
|
struct controlset *s;
|
||||||
union control *c;
|
union control *c;
|
||||||
|
|
||||||
/*
|
if (!midsession) {
|
||||||
* Add the serial back end to the protocols list at the top of
|
|
||||||
* the config box.
|
|
||||||
*/
|
|
||||||
s = ctrl_getset(b, "Session", "hostport",
|
|
||||||
"Specify your connection by host name or IP address");
|
|
||||||
{
|
|
||||||
int i;
|
int i;
|
||||||
extern void config_protocolbuttons_handler(union control *, void *,
|
extern void config_protocolbuttons_handler(union control *, void *,
|
||||||
void *, int);
|
void *, int);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Add the serial back end to the protocols list at the
|
||||||
|
* top of the config box.
|
||||||
|
*/
|
||||||
|
s = ctrl_getset(b, "Session", "hostport",
|
||||||
|
"Specify the destination you want to connect to");
|
||||||
|
|
||||||
for (i = 0; i < s->ncontrols; i++) {
|
for (i = 0; i < s->ncontrols; i++) {
|
||||||
c = s->ctrls[i];
|
c = s->ctrls[i];
|
||||||
if (c->generic.type == CTRL_RADIO &&
|
if (c->generic.type == CTRL_RADIO &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user