mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-24 23:33:50 +02:00
Some NULL checks... somehow I crashed on Mac but can't repeat now
This commit is contained in:
@@ -1168,7 +1168,8 @@ void ToolManager::OnMouse( wxMouseEvent & event )
|
||||
// Button was released...finish the drag
|
||||
// Transition the bar to a dock
|
||||
if (!mDidDrag) {
|
||||
mPrevDock->RestoreConfiguration(mPrevConfiguration);
|
||||
if (mPrevDock)
|
||||
mPrevDock->RestoreConfiguration(mPrevConfiguration);
|
||||
DoneDragging();
|
||||
return;
|
||||
}
|
||||
@@ -1200,7 +1201,8 @@ void ToolManager::OnMouse( wxMouseEvent & event )
|
||||
mp = mParent->ClientToScreen(mp);
|
||||
if (!mDragWindow) {
|
||||
// We no longer have control
|
||||
mPrevDock->GetConfiguration().Remove( mDragBar );
|
||||
if (mPrevDock)
|
||||
mPrevDock->GetConfiguration().Remove( mDragBar );
|
||||
UndockBar(mp);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user