Don't destroy the wxTipWindow window when it is closed

This leads to double deletion problem because it was already destroyed
in wxEVT_KILL_FOCUS handler when the popup window is hidden.
This commit is contained in:
ali kettab 2023-09-26 13:16:37 +01:00
parent 4036a555bf
commit 9ef8f26c54

View file

@ -201,9 +201,9 @@ void wxTipWindow::Close()
if ( m_view->HasCapture() )
m_view->ReleaseMouse();
#endif
// Under OS X we get destroyed because of wxEVT_KILL_FOCUS generated by
// Under OS X and Qt we get destroyed because of wxEVT_KILL_FOCUS generated by
// Show(false).
#ifndef __WXOSX__
#if !defined(__WXOSX__) && !defined(__WXQT__)
Destroy();
#endif
}