mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 09:58:01 +00:00
Implement refreshing the whole dialogue box with dlg_refresh, so that
if you load a session all the panels in the configuration dialogue reflect the new settings. However, there's a glitch which paints a white rectangle between the Saved Sessions listbox and the Close-on-exit radios. [originally from svn r5256]
This commit is contained in:
parent
c3dce77780
commit
0eb1e5df8d
@ -1409,9 +1409,18 @@ void dlg_refresh(union control *ctrl, void *dlg)
|
|||||||
{
|
{
|
||||||
struct macctrls *mcs = dlg;
|
struct macctrls *mcs = dlg;
|
||||||
union macctrl *mc;
|
union macctrl *mc;
|
||||||
|
int i;
|
||||||
|
|
||||||
if (ctrl == NULL)
|
if (ctrl == NULL) {
|
||||||
return; /* FIXME */
|
/* NULL means refresh every control */
|
||||||
|
for (i = 0 ; i < mcs->npanels; i++) {
|
||||||
|
for (mc = mcs->panels[i]; mc != NULL; mc = mc->generic.next) {
|
||||||
|
ctrlevent(mcs, mc, EVENT_REFRESH);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
/* Just refresh a specific control */
|
||||||
mc = findbyctrl(mcs, ctrl);
|
mc = findbyctrl(mcs, ctrl);
|
||||||
assert(mc != NULL);
|
assert(mc != NULL);
|
||||||
ctrlevent(mcs, mc, EVENT_REFRESH);
|
ctrlevent(mcs, mc, EVENT_REFRESH);
|
||||||
|
Loading…
Reference in New Issue
Block a user