From 8a012034c803993c3bda78b914b98e746db1fb77 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 29 Jan 2009 16:27:21 +0000 Subject: [PATCH] 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 --- src/common/tbarbase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/tbarbase.cpp b/src/common/tbarbase.cpp index 1b7d9d0068..97fe65f631 100644 --- a/src/common/tbarbase.cpp +++ b/src/common/tbarbase.cpp @@ -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; } -- 2.45.2