]> git.saurik.com Git - wxWidgets.git/commitdiff
wxEVT_COMMAND_TEXT_UPDATED events from wxComboCtrl's embedded wxTextCtrl kept confusi...
authorJaakko Salli <jaakko.salli@dnainternet.net>
Wed, 13 Apr 2011 16:39:06 +0000 (16:39 +0000)
committerJaakko Salli <jaakko.salli@dnainternet.net>
Wed, 13 Apr 2011 16:39:06 +0000 (16:39 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67440 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/propgrid/propgrid.cpp

index 2b2877276d93ccd5af28f73a413e59c9e8acf165..863581ae7617f9d218c6a471569da93d7dde0f2c 100644 (file)
@@ -3608,6 +3608,12 @@ bool wxPropertyGrid::HandleCustomEditorEvent( wxEvent &event )
         }
         else if ( wnd->IsKindOf(CLASSINFO(wxComboCtrl)) )
         {
+            // In some cases we might stumble unintentionally on
+            // wxComboCtrl's embedded wxTextCtrl's events. Let's
+            // avoid them.
+            if ( editorWnd->IsKindOf(CLASSINFO(wxTextCtrl)) )
+                return false;
+
             wxComboCtrl* cc = (wxComboCtrl*) wnd;
 
             wxString newTcValue = cc->GetTextCtrl()->GetValue();