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.
This commit is contained in:
Artur Wieczorek
2019-07-03 20:33:12 +02:00
parent 30630d4ea5
commit a1dac5aa38

View File

@@ -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();