]> git.saurik.com Git - wxWidgets.git/commitdiff
reverted last change with setting the focus only if we hadn't had it, this breaks...
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 21 Jul 2005 10:19:53 +0000 (10:19 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 21 Jul 2005 10:19:53 +0000 (10:19 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34899 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/grid.cpp

index 874499b1e2d4d26ceebda854c1707c9f7f02e21c..b8d878683975e7d6743267f3184932dbcc7384cb 100644 (file)
@@ -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) );