Don't constantly recreate the tool tip, just update the text.
Fixes #9502, more or less.
This commit is contained in:
parent
57ad874483
commit
eb594c5cd5
@ -63,10 +63,12 @@ TimeZoneListView::GetToolTipAt(BPoint point, BToolTip** _tip)
|
||||
<< " (" << dateInTimeZone << ')';
|
||||
|
||||
if (fToolTip != NULL)
|
||||
fToolTip->ReleaseReference();
|
||||
fToolTip->SetText(toolTip.String());
|
||||
else {
|
||||
fToolTip = new (std::nothrow) BTextToolTip(toolTip.String());
|
||||
if (fToolTip == NULL)
|
||||
return false;
|
||||
}
|
||||
|
||||
*_tip = fToolTip;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user