From eb594c5cd5a3a6b8b89be13f22f0e2731273bcae Mon Sep 17 00:00:00 2001 From: Ryan Leavengood Date: Thu, 7 Mar 2013 09:20:17 -0500 Subject: [PATCH] Don't constantly recreate the tool tip, just update the text. Fixes #9502, more or less. --- src/preferences/time/TimeZoneListView.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/preferences/time/TimeZoneListView.cpp b/src/preferences/time/TimeZoneListView.cpp index 87a8519c85..aa75195203 100644 --- a/src/preferences/time/TimeZoneListView.cpp +++ b/src/preferences/time/TimeZoneListView.cpp @@ -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;