windows should not be destroyed just because the close event succeeds

This commit is contained in:
Sean D'Epagnier 2016-08-26 16:42:52 -04:00 committed by Vadim Zeitlin
parent 27df7100b4
commit 52a7a1c5e6

View File

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