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:
parent
4036a555bf
commit
9ef8f26c54
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue