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:
parent
8fd38e3369
commit
b718a533ac
@ -3608,6 +3608,12 @@ bool wxPropertyGrid::HandleCustomEditorEvent( wxEvent &event )
|
|||||||
}
|
}
|
||||||
else if ( wnd->IsKindOf(CLASSINFO(wxComboCtrl)) )
|
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;
|
wxComboCtrl* cc = (wxComboCtrl*) wnd;
|
||||||
|
|
||||||
wxString newTcValue = cc->GetTextCtrl()->GetValue();
|
wxString newTcValue = cc->GetTextCtrl()->GetValue();
|
||||||
|
Loading…
Reference in New Issue
Block a user