From 48962b9fdd9e2a68d75d2e5bbdff2e7e168b6bad Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 21 Jul 2005 10:19:53 +0000 Subject: [PATCH] reverted last change with setting the focus only if we hadn't had it, this breaks under wxGTK git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34899 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/grid.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index 874499b1e2..b8d8786839 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -7864,11 +7864,7 @@ void wxGrid::HideCellEditControl() editor->DecRef(); attr->DecRef(); - // if the focus moved completely outside this application, set it to - // ourselves so that it's not "lost" when the user switches back to - // this app - if ( !FindFocus() ) - m_gridWin->SetFocus(); + m_gridWin->SetFocus(); // refresh whole row to the right wxRect rect( CellToRect(row, col) ); -- 2.45.2