(svn r13305) -Fix (r13039): Confirmation window sent both yes and no answers instead of just yes.

pull/155/head
peter1138 16 years ago
parent f505e4e407
commit 9a78083c8a

@ -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);

Loading…
Cancel
Save