[haiku-commits] r37078 - haiku/trunk/src/apps/launchbox

  • From: superstippi@xxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Thu, 10 Jun 2010 11:02:29 +0200 (CEST)

Author: stippi
Date: 2010-06-10 11:02:29 +0200 (Thu, 10 Jun 2010)
New Revision: 37078
Changeset: http://dev.haiku-os.org/changeset/37078/haiku

Modified:
   haiku/trunk/src/apps/launchbox/LaunchButton.cpp
Log:
Work around a bug in the tool tip implementation that prevents changing the
tool tip once it has been displayed.


Modified: haiku/trunk/src/apps/launchbox/LaunchButton.cpp
===================================================================
--- haiku/trunk/src/apps/launchbox/LaunchButton.cpp     2010-06-10 08:52:57 UTC 
(rev 37077)
+++ haiku/trunk/src/apps/launchbox/LaunchButton.cpp     2010-06-10 09:02:29 UTC 
(rev 37078)
@@ -376,6 +376,11 @@
 void
 LaunchButton::_UpdateToolTip()
 {
+       // TODO: This works around a bug in the tool tip management.
+       // Remove when fixed (although no harm done...)
+       HideToolTip();
+       SetToolTip(static_cast<BToolTip*>(NULL));
+
        if (fRef) {
                BString helper(fRef->name);
                if (fDescription.CountChars() > 0) {


Other related posts: