Added GetId() to Connect calls to ensure only the relevant events are processed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52836 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -55,7 +55,7 @@ bool wxGenericFileDirButton::Create( wxWindow *parent, wxWindowID id,
|
||||
}
|
||||
|
||||
// and handle user clicks on it
|
||||
Connect(wxEVT_COMMAND_BUTTON_CLICKED,
|
||||
Connect(GetId(), wxEVT_COMMAND_BUTTON_CLICKED,
|
||||
wxCommandEventHandler(wxGenericFileDirButton::OnButtonClick),
|
||||
NULL, this);
|
||||
|
||||
|
Reference in New Issue
Block a user