From: Julian Smart Date: Sat, 11 Mar 2006 14:22:55 +0000 (+0000) Subject: Applied [ 1425529 ] Tooltip was not removed on deletion X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/d8909578f70e31e042ec5f82c7db9e94a3ab4b69 Applied [ 1425529 ] Tooltip was not removed on deletion git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37996 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/tooltip.cpp b/src/msw/tooltip.cpp index 052fbca0b9..17bcc3fce8 100644 --- a/src/msw/tooltip.cpp +++ b/src/msw/tooltip.cpp @@ -244,8 +244,9 @@ wxToolTip::wxToolTip(const wxString &tip) wxToolTip::~wxToolTip() { - // there is no need to Remove() this tool - it will be done automatically - // anyhow + // the tooltip has to be removed before deleting. Otherwise, if it is visible + // while being deleted, there will be a delay before it goes away. + Remove(); } // ----------------------------------------------------------------------------