]> git.saurik.com Git - wxWidgets.git/commitdiff
Don't accept picker text events from any old text control
authorJulian Smart <julian@anthemion.co.uk>
Sun, 16 Mar 2008 13:50:37 +0000 (13:50 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Sun, 16 Mar 2008 13:50:37 +0000 (13:50 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52567 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/pickerbase.cpp

index 867712afbfe071c82825c973f5e6d759fdbf690a..53ec72d19e064240ed421ccf572c4b7c5995462d 100644 (file)
@@ -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);