]> git.saurik.com Git - wxWidgets.git/commitdiff
Applied [ 1425529 ] Tooltip was not removed on deletion
authorJulian Smart <julian@anthemion.co.uk>
Sat, 11 Mar 2006 14:22:55 +0000 (14:22 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Sat, 11 Mar 2006 14:22:55 +0000 (14:22 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37996 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/tooltip.cpp

index 052fbca0b9e2b53016a1c35a8aa24b76e1130c2d..17bcc3fce808980930dd1d20c83e2a37bdcd1038 100644 (file)
@@ -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();
 }
 
 // ----------------------------------------------------------------------------