mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-16 16:10:06 +02:00
a null check on GetActiveProject()
This commit is contained in:
parent
93c2a692c1
commit
aef4b80d53
@ -1706,6 +1706,7 @@ void AudacityApp::OnKeyDown(wxKeyEvent &event)
|
||||
if(event.GetKeyCode() == WXK_ESCAPE) {
|
||||
// Stop play, including scrub, but not record
|
||||
auto project = ::GetActiveProject();
|
||||
if ( project ) {
|
||||
auto token = ProjectAudioIO::Get( *project ).GetAudioIOToken();
|
||||
auto &scrubber = Scrubber::Get( *project );
|
||||
auto scrubbing = scrubber.HasMark();
|
||||
@ -1721,7 +1722,8 @@ void AudacityApp::OnKeyDown(wxKeyEvent &event)
|
||||
else
|
||||
event.Skip();
|
||||
}
|
||||
else
|
||||
}
|
||||
|
||||
event.Skip();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user