X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/35f8ae65726bbb0c56815da0695045588e1551ea..43c42c18d36c703a88b1b7b697bac27fe5608eca:/include/wx/propgrid/propgrid.h diff --git a/include/wx/propgrid/propgrid.h b/include/wx/propgrid/propgrid.h index 96bd76b787..6b0458ee78 100644 --- a/include/wx/propgrid/propgrid.h +++ b/include/wx/propgrid/propgrid.h @@ -1609,7 +1609,7 @@ public: */ bool IsMainButtonEvent( const wxEvent& event ) { - return (event.GetEventType() == wxEVT_COMMAND_BUTTON_CLICKED) + return (event.GetEventType() == wxEVT_BUTTON) && (m_wndSecId == event.GetId()); }