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:
parent
e1cf09d918
commit
ad2db6f8ea
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user