Don't constantly recreate the tool tip, just update the text.

Fixes #9502, more or less.
This commit is contained in:
Ryan Leavengood 2013-03-07 09:20:17 -05:00
parent 57ad874483
commit eb594c5cd5

View File

@ -63,10 +63,12 @@ TimeZoneListView::GetToolTipAt(BPoint point, BToolTip** _tip)
<< " (" << dateInTimeZone << ')';
if (fToolTip != NULL)
fToolTip->ReleaseReference();
fToolTip = new (std::nothrow) BTextToolTip(toolTip.String());
if (fToolTip == NULL)
return false;
fToolTip->SetText(toolTip.String());
else {
fToolTip = new (std::nothrow) BTextToolTip(toolTip.String());
if (fToolTip == NULL)
return false;
}
*_tip = fToolTip;