From deb64c34ffb4e22f172933ebb921da3f86228007 Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Fri, 14 Sep 2007 07:57:21 +0000 Subject: [PATCH] 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 --- src/generic/listctrl.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index 6c76ea3555..075ed1d1b5 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -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) )