From a1dac5aa3812a7372fc41136d32c166fb4fed508 Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Wed, 3 Jul 2019 20:33:12 +0200 Subject: [PATCH] Show wxPGProperty editor dialog only in response to clicking main editor button Properties with editor dialog (like those derived from wxEditorDialogProperty) should show it only in response to clicking the main editor button. --- src/propgrid/propgrid.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/propgrid/propgrid.cpp b/src/propgrid/propgrid.cpp index 2b3646f066..add734ecc1 100644 --- a/src/propgrid/propgrid.cpp +++ b/src/propgrid/propgrid.cpp @@ -3586,7 +3586,7 @@ bool wxPropertyGrid::HandleCustomEditorEvent( wxEvent &event ) // // Try common button handling - if ( m_wndEditor2 && event.GetEventType() == wxEVT_BUTTON ) + if ( IsMainButtonEvent(event) ) { wxPGEditorDialogAdapter* adapter = selected->GetEditorDialog();