mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-04 16:14:00 +01:00
Bug 1204 - Crash when pressing both mouse buttons over toolbar buttons
Looks a very safe fix. Post 2.1.2 should review ALL uses of CaptureMouse().
This commit is contained in:
@@ -405,7 +405,8 @@ void AButton::OnMouseEvent(wxMouseEvent & event)
|
||||
if (mEnabled && event.IsButton()) {
|
||||
if (event.ButtonIsDown(wxMOUSE_BTN_ANY)) {
|
||||
mIsClicking = true;
|
||||
CaptureMouse();
|
||||
if( !HasCapture() )
|
||||
CaptureMouse();
|
||||
}
|
||||
else if (mIsClicking) {
|
||||
mIsClicking = false;
|
||||
|
||||
Reference in New Issue
Block a user