Release mouse before closing HTML_MESSAGE_BOX.
Fixes: lp:1772275 * https://bugs.launchpad.net/kicad/+bug/1772275
This commit is contained in:
parent
10ec39a107
commit
2b22cbe94d
|
@ -41,6 +41,14 @@ HTML_MESSAGE_BOX::HTML_MESSAGE_BOX( wxWindow* parent, const wxString& aTitle) :
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
HTML_MESSAGE_BOX::~HTML_MESSAGE_BOX()
|
||||||
|
{
|
||||||
|
// Prevent wxWidgets bug which fails to release when closing the window on an <esc>.
|
||||||
|
if( m_htmlWindow->HasCapture() )
|
||||||
|
m_htmlWindow->ReleaseMouse();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void HTML_MESSAGE_BOX::OnCloseButtonClick( wxCommandEvent& event )
|
void HTML_MESSAGE_BOX::OnCloseButtonClick( wxCommandEvent& event )
|
||||||
{
|
{
|
||||||
// the dialog can be shown modal or not modal.
|
// the dialog can be shown modal or not modal.
|
||||||
|
|
|
@ -44,10 +44,8 @@ protected:
|
||||||
void OnCloseButtonClick( wxCommandEvent& event ) override;
|
void OnCloseButtonClick( wxCommandEvent& event ) override;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
/**
|
|
||||||
* Constructor
|
|
||||||
*/
|
|
||||||
HTML_MESSAGE_BOX( wxWindow* parent, const wxString& aTitle );
|
HTML_MESSAGE_BOX( wxWindow* parent, const wxString& aTitle );
|
||||||
|
~HTML_MESSAGE_BOX() override;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* set the dialog size, using a "logical value.
|
* set the dialog size, using a "logical value.
|
||||||
|
|
Loading…
Reference in New Issue