wxEVT_COMMAND_TEXT_UPDATED events from wxComboCtrl's embedded wxTextCtrl kept confusing wxPropertyGrid::HandleCustomEditorEvent(). We need to ignore them.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67440 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Jaakko Salli 2011-04-13 16:39:06 +00:00
parent 8fd38e3369
commit b718a533ac

View 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();