mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-26 09:28:07 +02:00
Use SafelyProcessEvent
This commit is contained in:
parent
8e5975b10d
commit
006aeda0a9
@ -563,7 +563,9 @@ void AButton::Click()
|
|||||||
{
|
{
|
||||||
wxCommandEvent event(wxEVT_COMMAND_BUTTON_CLICKED, GetId());
|
wxCommandEvent event(wxEVT_COMMAND_BUTTON_CLICKED, GetId());
|
||||||
event.SetEventObject(this);
|
event.SetEventObject(this);
|
||||||
GetEventHandler()->ProcessEvent(event);
|
// Be sure to use SafelyProcessEvent so that exceptions do not propagate
|
||||||
|
// out of DoDefaultAction
|
||||||
|
GetEventHandler()->SafelyProcessEvent(event);
|
||||||
}
|
}
|
||||||
|
|
||||||
void AButton::SetShift(bool shift)
|
void AButton::SetShift(bool shift)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user