Work around a bug in the tool tip implementation that prevents changing the

tool tip once it has been displayed.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37078 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus
2010-06-10 09:02:29 +00:00
parent 70e39d0927
commit 1179b11bf2
+5
View File
@@ -376,6 +376,11 @@ LaunchButton::SetIgnoreDoubleClick(bool refuse)
void void
LaunchButton::_UpdateToolTip() 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) { if (fRef) {
BString helper(fRef->name); BString helper(fRef->name);
if (fDescription.CountChars() > 0) { if (fDescription.CountChars() > 0) {