From 52a7a1c5e6880f04c25898ac9a8e4d43f1ea0bfe Mon Sep 17 00:00:00 2001 From: Sean D'Epagnier Date: Fri, 26 Aug 2016 16:42:52 -0400 Subject: [PATCH] windows should not be destroyed just because the close event succeeds --- src/qt/window.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/qt/window.cpp b/src/qt/window.cpp index 07295d7591..d651bba261 100644 --- a/src/qt/window.cpp +++ b/src/qt/window.cpp @@ -1418,12 +1418,7 @@ bool wxWindowQt::QtHandleCloseEvent ( QWidget *handler, QCloseEvent *WXUNUSED( e if ( GetHandle() != handler ) return false; - int close = Close(); - if ( close ) - { - Destroy(); - } - return close; + return Close(); } bool wxWindowQt::QtHandleContextMenuEvent ( QWidget *WXUNUSED( handler ), QContextMenuEvent *event )