mirror of
https://github.com/cookiengineer/audacity
synced 2026-04-02 12:35:11 +02:00
Fix assertion when cancelling from selection drag
This commit is contained in:
@@ -792,10 +792,12 @@ bool TrackPanel::HandleEscapeKey(bool down)
|
||||
if (!down)
|
||||
return false;
|
||||
|
||||
auto target = Target();
|
||||
if (target && target->HasEscape() && target->Escape()) {
|
||||
HandleCursorForPresentMouseState(false);
|
||||
return true;
|
||||
{
|
||||
auto target = Target();
|
||||
if (target && target->HasEscape() && target->Escape()) {
|
||||
HandleCursorForPresentMouseState(false);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
if (mUIHandle) {
|
||||
|
||||
Reference in New Issue
Block a user