mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-28 14:18:41 +02:00
Fix condition for displaying (Esc to cancel)
This commit is contained in:
parent
ed4300fed1
commit
5f8cde43fa
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user