From 504d0d1ae5aad221ab1e0e23f060f0ff5e6f103a Mon Sep 17 00:00:00 2001 From: peter1138 Date: Wed, 28 May 2008 06:30:55 +0000 Subject: [PATCH] (svn r13305) -Fix (r13039): Confirmation window sent both yes and no answers instead of just yes. --- src/misc_gui.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp index ac64a4fcc7..24829904c7 100644 --- a/src/misc_gui.cpp +++ b/src/misc_gui.cpp @@ -1208,6 +1208,8 @@ struct QueryWindow : public Window { * DeleteNonVitalWindows() to be called - we shouldn't be in a window then */ QueryCallbackProc *proc = this->proc; Window *parent = this->parent; + /* Prevent the destructor calling the callback function */ + this->proc = NULL; delete this; if (proc != NULL) { proc(parent, true);