Fix ending label-editing bug when clicking elsewhere

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@48671 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2007-09-14 07:57:21 +00:00
parent 2af5a7ead3
commit deb64c34ff

View File

@@ -2071,6 +2071,8 @@ void wxListHeaderWindow::OnMouse( wxMouseEvent &event )
void wxListHeaderWindow::OnSetFocus( wxFocusEvent &WXUNUSED(event) )
{
wxPrintf( wxT("OnSetFocus\n") );
m_owner->SetFocus();
m_owner->Update();
}
@@ -3009,7 +3011,7 @@ void wxListMainWindow::OnMouse( wxMouseEvent &event )
#endif // __WXMAC__
if ( event.LeftDown() )
SetFocus();
SetFocusIgnoringChildren();
event.SetEventObject( GetParent() );
if ( GetParent()->GetEventHandler()->ProcessEvent( event) )