1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-17 16:40:07 +02:00

Fix flickering tooltips in TrackPanel

This commit is contained in:
Paul Licameli 2017-07-17 11:17:23 -04:00
parent c72bb76301
commit 14450d6d9f

View File

@ -991,8 +991,11 @@ void TrackPanel::HandleMotion
/* i18n-hint Esc is a key on the keyboard */ /* i18n-hint Esc is a key on the keyboard */
status += wxT(" "), status += _("(Esc to cancel)"); status += wxT(" "), status += _("(Esc to cancel)");
mListener->TP_DisplayStatusMessage(status); mListener->TP_DisplayStatusMessage(status);
if (tooltip != GetToolTipText()) if (tooltip != GetToolTipText()) {
this->SetToolTip(tooltip); // Unset first, by analogy with AButton
UnsetToolTip();
SetToolTip(tooltip);
}
if (pCursor) if (pCursor)
SetCursor( *pCursor ); SetCursor( *pCursor );