mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-05 14:18:53 +02:00
Various other drags could crash Mac debug build if you option-W. Fixed too...
... And I think this fix is now exhaustive.
This commit is contained in:
parent
ece29b3ff3
commit
d34715d6ad
@ -1078,6 +1078,10 @@ AudacityProject::AudacityProject(wxWindow * parent, wxWindowID id,
|
||||
|
||||
AudacityProject::~AudacityProject()
|
||||
{
|
||||
// Tool manager gives us capture sometimes
|
||||
if(HasCapture())
|
||||
ReleaseMouse();
|
||||
|
||||
if (wxGetApp().GetRecentFiles())
|
||||
{
|
||||
wxGetApp().GetRecentFiles()->RemoveMenu(mRecentFilesMenu);
|
||||
|
@ -112,6 +112,8 @@ ToolBarResizer::ToolBarResizer(ToolBar *bar)
|
||||
|
||||
ToolBarResizer::~ToolBarResizer()
|
||||
{
|
||||
if(HasCapture())
|
||||
ReleaseMouse();
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -155,6 +155,12 @@ class ToolFrame final : public wxFrame
|
||||
}
|
||||
}
|
||||
|
||||
~ToolFrame()
|
||||
{
|
||||
if(HasCapture())
|
||||
ReleaseMouse();
|
||||
}
|
||||
|
||||
//
|
||||
// Transition a toolbar from float to dragging
|
||||
//
|
||||
|
@ -187,6 +187,8 @@ AButton::AButton(wxWindow * parent,
|
||||
|
||||
AButton::~AButton()
|
||||
{
|
||||
if(HasCapture())
|
||||
ReleaseMouse();
|
||||
}
|
||||
|
||||
void AButton::Init(wxWindow * parent,
|
||||
|
Loading…
x
Reference in New Issue
Block a user