X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/32b183b5785003338bb6247fe41fc66d6243aff2..ad653fa23069c5d9378247084f03c9a718c3ad62:/src/generic/tipwin.cpp diff --git a/src/generic/tipwin.cpp b/src/generic/tipwin.cpp index b50fb47a96..ede0ae3913 100644 --- a/src/generic/tipwin.cpp +++ b/src/generic/tipwin.cpp @@ -226,7 +226,11 @@ void wxTipWindow::Close() if ( m_view->HasCapture() ) m_view->ReleaseMouse(); #endif - Destroy(); + // Under OS X we get destroyed because of wxEVT_KILL_FOCUS generated by + // Show(false). + #ifndef __WXOSX__ + Destroy(); + #endif #else wxFrame::Close(); #endif