In wxPropertyGrid::HandleCustomEditorEvent(), ignore events coming from a label editor

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63755 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Jaakko Salli 2010-03-25 15:40:27 +00:00
parent e1cf09d918
commit ad2db6f8ea

View File

@ -3418,6 +3418,15 @@ void wxPropertyGrid::HandleCustomEditorEvent( wxEvent &event )
if ( !m_pState )
return;
// Don't care about the event if it originated from the
// 'label editor'. In this function we only care about the
// property value editor.
if ( m_labelEditor && event.GetId() == m_labelEditor->GetId() )
{
event.Skip();
return;
}
wxPGProperty* selected = GetSelection();
// Somehow, event is handled after property has been deselected.