diff options
Diffstat (limited to 'misc_gui.c')
-rw-r--r-- | misc_gui.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/misc_gui.c b/misc_gui.c index 2f2a8d3bf..92ba1b4fa 100644 --- a/misc_gui.c +++ b/misc_gui.c @@ -1226,7 +1226,10 @@ static void QueryWndProc(Window *w, WindowEvent *e) 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); + } break; } } |