windows should not be destroyed just because the close event succeeds
This commit is contained in:
committed by
Vadim Zeitlin
parent
27df7100b4
commit
52a7a1c5e6
@@ -1418,12 +1418,7 @@ bool wxWindowQt::QtHandleCloseEvent ( QWidget *handler, QCloseEvent *WXUNUSED( e
|
|||||||
if ( GetHandle() != handler )
|
if ( GetHandle() != handler )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
int close = Close();
|
return Close();
|
||||||
if ( close )
|
|
||||||
{
|
|
||||||
Destroy();
|
|
||||||
}
|
|
||||||
return close;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wxWindowQt::QtHandleContextMenuEvent ( QWidget *WXUNUSED( handler ), QContextMenuEvent *event )
|
bool wxWindowQt::QtHandleContextMenuEvent ( QWidget *WXUNUSED( handler ), QContextMenuEvent *event )
|
||||||
|
Reference in New Issue
Block a user