[haiku-commits] r37095 - haiku/trunk/src/kits/interface

  • From: axeld@xxxxxxxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Fri, 11 Jun 2010 09:56:51 +0200 (CEST)

Author: axeld
Date: 2010-06-11 09:56:51 +0200 (Fri, 11 Jun 2010)
New Revision: 37095
Changeset: http://dev.haiku-os.org/changeset/37095/haiku

Modified:
   haiku/trunk/src/kits/interface/View.cpp
Log:
* Before stippi starts clobbering the sources everywhere with superfluous
  work-arounds, I applied the work-around where the problem actually occurs,
  until someone takes the time to look into it.


Modified: haiku/trunk/src/kits/interface/View.cpp
===================================================================
--- haiku/trunk/src/kits/interface/View.cpp     2010-06-11 07:29:16 UTC (rev 
37094)
+++ haiku/trunk/src/kits/interface/View.cpp     2010-06-11 07:56:51 UTC (rev 
37095)
@@ -4674,6 +4674,10 @@
 void
 BView::SetToolTip(const char* text)
 {
+       // TODO: temporary work-around for bug #5669
+       HideToolTip();
+       SetToolTip(static_cast<BToolTip*>(NULL));
+
        if (BTextToolTip* tip = dynamic_cast<BTextToolTip*>(fToolTip))
                tip->SetText(text);
        else


Other related posts: