mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-02 16:49:41 +02:00
Reinstate close handle for AudioUnits
Closing the window via the frame's close button was not being recognized by wxWidgets. I'm sure it's because of the of the additional event handler, but the close event should have been sent on to the wx handler since it wasn't handled. No matter...just capture the event and close the window manually.
This commit is contained in:
parent
adbaca16eb
commit
f677bc00df
@ -834,7 +834,7 @@ static const EventTypeSpec windowEventList[] =
|
||||
{kEventClassMouse, kEventMouseWheelMoved},
|
||||
{kEventClassMouse, kEventMouseScroll},
|
||||
|
||||
// {kEventClassWindow, kEventWindowClose},
|
||||
{kEventClassWindow, kEventWindowClose},
|
||||
};
|
||||
|
||||
pascal OSStatus
|
||||
@ -872,12 +872,14 @@ OSStatus AudioUnitEffect::WindowEventHandler(EventRef eventRef)
|
||||
}
|
||||
}
|
||||
|
||||
/* Not used, but leaving just in case
|
||||
if (GetEventClass(event) == kEventClassWindow && GetEventKind(event) == kEventWindowClose)
|
||||
{
|
||||
result = noErr;
|
||||
if (mDialog)
|
||||
{
|
||||
mDialog->Close();
|
||||
result = noErr;
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
return result;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user