use HandleWindowEvent() instead of ProcessEvent() to avoid crashes if the toolbar left click handler throws under wxGTK
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58498 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
3cfde7c049
commit
8a012034c8
@ -625,7 +625,7 @@ bool wxToolBarBase::OnLeftClick(int id, bool toggleDown)
|
||||
event.SetExtraLong((long)toggleDown);
|
||||
|
||||
// Send events to this toolbar instead (and thence up the window hierarchy)
|
||||
GetEventHandler()->ProcessEvent(event);
|
||||
HandleWindowEvent(event);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user