From de67922eaaf69aee61a3bda72e773ed0ac8b691b Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Mon, 16 Nov 2009 18:39:32 +0000 Subject: [PATCH] Always set focus to the item selected using Select() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62666 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/datavgen.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/generic/datavgen.cpp b/src/generic/datavgen.cpp index 3a929e97fc..5c39027e6b 100644 --- a/src/generic/datavgen.cpp +++ b/src/generic/datavgen.cpp @@ -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 ); } } -- 2.45.2