Commit 35c23f31 authored by unknown's avatar unknown Committed by jean-pierre charras

Fix incorrect close function in HTML_MESSAGE_BOX (whichcan be shown in modal or not modal mode)

parent 834b31b4
...@@ -39,7 +39,12 @@ HTML_MESSAGE_BOX::HTML_MESSAGE_BOX( wxWindow* parent, const wxString& aTitle, ...@@ -39,7 +39,12 @@ HTML_MESSAGE_BOX::HTML_MESSAGE_BOX( wxWindow* parent, const wxString& aTitle,
void HTML_MESSAGE_BOX::OnCloseButtonClick( wxCommandEvent& event ) void HTML_MESSAGE_BOX::OnCloseButtonClick( wxCommandEvent& event )
{ {
// the dialog can be shown modal or not modal.
// therefore, use the right way to close it.
if( IsModal() )
EndModal( 0 ); EndModal( 0 );
else
Destroy();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment