X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a0e5592007714f82a1ee130b75e3a8d9c39944d0..07aaf32633ecf18ec3edfbb41793a112914792d0:/src/generic/treectlg.cpp?ds=sidebyside diff --git a/src/generic/treectlg.cpp b/src/generic/treectlg.cpp index 28ac6d781a..d7193a9feb 100644 --- a/src/generic/treectlg.cpp +++ b/src/generic/treectlg.cpp @@ -3590,6 +3590,13 @@ void wxGenericTreeCtrl::OnMouse( wxMouseEvent &event ) wxTreeEvent hevent(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP, this, hoverItem); + // setting a tooltip upon leaving a view is getting the tooltip displayed + // on the neighbouring view ... +#ifdef __WXOSX__ + if ( event.Leaving() ) + SetToolTip(NULL); + else +#endif if ( GetEventHandler()->ProcessEvent(hevent) ) { // If the user permitted the tooltip change, update it, otherwise