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

Fix condition for displaying (Esc to cancel)

This commit is contained in:
Paul Licameli 2017-07-17 11:49:11 -04:00
parent ed4300fed1
commit 5f8cde43fa

View File

@ -1014,7 +1014,7 @@ bool TrackPanel::HasRotation()
bool TrackPanel::HasEscape()
{
if (HasCapture())
if (IsMouseCaptured())
return true;
if (mTarget + 1 == mTargets.size() &&
@ -1022,7 +1022,7 @@ bool TrackPanel::HasEscape()
!Target()->HasEscape())
return false;
return true;
return mTargets.size() > 0;
}
bool TrackPanel::ChangeTarget(bool forward, bool cycle)