X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/99c654164f1b7c4dd8d05d44d9b57d0cdf01510a..d46a9154e9a0e15f9e4561a1f7f563e21f211208:/mac/macctrls.c diff --git a/mac/macctrls.c b/mac/macctrls.c index 55614531..450b1cd1 100644 --- a/mac/macctrls.c +++ b/mac/macctrls.c @@ -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);