From e70abc2dd7d3c40677f1c94eb3b499f09129934c Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Sun, 16 Mar 2008 13:50:37 +0000 Subject: [PATCH] Don't accept picker text events from any old text control git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52567 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/pickerbase.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common/pickerbase.cpp b/src/common/pickerbase.cpp index 867712afbf..53ec72d19e 100644 --- a/src/common/pickerbase.cpp +++ b/src/common/pickerbase.cpp @@ -96,14 +96,14 @@ bool wxPickerBase::CreateBase(wxWindow *parent, // set the initial contents of the textctrl m_text->SetValue(text); - m_text->Connect(wxEVT_COMMAND_TEXT_UPDATED, + m_text->Connect(m_text->GetId(), wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler(wxPickerBase::OnTextCtrlUpdate), NULL, this); - m_text->Connect(wxEVT_KILL_FOCUS, + m_text->Connect(m_text->GetId(), wxEVT_KILL_FOCUS, wxFocusEventHandler(wxPickerBase::OnTextCtrlKillFocus), NULL, this); - m_text->Connect(wxEVT_DESTROY, + m_text->Connect(m_text->GetId(), wxEVT_DESTROY, wxWindowDestroyEventHandler(wxPickerBase::OnTextCtrlDelete), NULL, this); -- 2.45.2