mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-11 17:41:15 +02:00
Fix crash from following NULL pointer
GetControlToolBar() can return NULL when closing windows/projects.
This commit is contained in:
parent
8c486b50f6
commit
ddd1494e75
@ -787,7 +787,11 @@ void Scrubber::OnActivateOrDeactivateApp(wxActivateEvent &event)
|
|||||||
{
|
{
|
||||||
// First match priority logic...
|
// First match priority logic...
|
||||||
// Pause if Pause down, or not scrubbing.
|
// Pause if Pause down, or not scrubbing.
|
||||||
if (mProject->GetControlToolBar()->IsPauseDown())
|
if (!mProject)
|
||||||
|
Pause(true);
|
||||||
|
else if (!mProject->GetControlToolBar())
|
||||||
|
Pause(true);
|
||||||
|
else if (mProject->GetControlToolBar()->IsPauseDown())
|
||||||
Pause( true );
|
Pause( true );
|
||||||
else if (!IsScrubbing())
|
else if (!IsScrubbing())
|
||||||
Pause( true );
|
Pause( true );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user