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