@@ -1223,13 +1223,16 @@ static void QueryWndProc(Window *w, Wind
DeleteWindow(w);
break;
}
case WE_DESTROY: /* Call callback function (if any) on window close if not yet called */
if (!q->calledback && q->proc != NULL) q->proc(w->parent, false);
if (!q->calledback && q->proc != NULL) {
q->calledback = true;
q->proc(w->parent, false);
static const Widget _query_widgets[] = {