(svn r13305) -Fix (r13039): Confirmation window sent both yes and no answers instead of just yes.
authorpeter1138
Wed, 28 May 2008 06:30:55 +0000
changeset 10755 3661f65e2211
parent 10754 e190e710da4e
child 10756 5392e3de5700
(svn r13305) -Fix (r13039): Confirmation window sent both yes and no answers instead of just yes.
src/misc_gui.cpp
--- a/src/misc_gui.cpp	Tue May 27 23:40:36 2008 +0000
+++ b/src/misc_gui.cpp	Wed May 28 06:30:55 2008 +0000
@@ -1208,6 +1208,8 @@
 				 * 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);