1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-10 01:48:00 +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:
Owen Dunn 2005-02-05 14:50:42 +00:00
parent c3dce77780
commit 0eb1e5df8d

View File

@ -1409,9 +1409,18 @@ void dlg_refresh(union control *ctrl, void *dlg)
{
struct macctrls *mcs = dlg;
union macctrl *mc;
int i;
if (ctrl == NULL)
return; /* FIXME */
if (ctrl == NULL) {
/* 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);
assert(mc != NULL);
ctrlevent(mcs, mc, EVENT_REFRESH);