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:
Julian Smart
2008-03-26 15:49:31 +00:00
parent 53a2db124c
commit 29f571de5c
4 changed files with 8 additions and 8 deletions

View File

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