Avoid double destruction of wxTipWindow under wxOSX.

Hiding the window results in wxEVT_KILL_FOCUS under OS X and this destroys it
already, so when we call Destroy() from wxTipWindow::Close() later, it
triggers assert about destroying it twice.

Avoid doing this under OS X for now, even though the real problem is probably
the discrepancy in wxEVT_KILL_FOCUS event generation under different platforms.

Closes #14651.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72813 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2012-10-29 01:20:21 +00:00
parent d8088f27c5
commit baa6b3327f

View File

@@ -226,7 +226,11 @@ void wxTipWindow::Close()
if ( m_view->HasCapture() )
m_view->ReleaseMouse();
#endif
// Under OS X we get destroyed because of wxEVT_KILL_FOCUS generated by
// Show(false).
#ifndef __WXOSX__
Destroy();
#endif
#else
wxFrame::Close();
#endif