]> git.saurik.com Git - wxWidgets.git/commitdiff
Always set focus to the item selected using Select()
authorRobert Roebling <robert@roebling.de>
Mon, 16 Nov 2009 18:39:32 +0000 (18:39 +0000)
committerRobert Roebling <robert@roebling.de>
Mon, 16 Nov 2009 18:39:32 +0000 (18:39 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62666 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/datavgen.cpp

index 3a929e97fc5401b47b40ef24bff52e81877ae596..5c39027e6b8daf8478c1b4856c1c7b06a6e56e81 100644 (file)
@@ -4109,9 +4109,8 @@ void wxDataViewCtrl::Select( const wxDataViewItem & item )
             
         m_clientArea->SelectRow(row, true);
         
-        // Also reset focus
-        if (m_clientArea->IsSingleSel())
-            m_clientArea->ChangeCurrentRow( row );
+        // Also set focus to the selected item
+        m_clientArea->ChangeCurrentRow( row );
     }
 }