From 2fe417e4c40f5686a37d04b0e0f57a6fa6c2ceec Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Mon, 7 Mar 2005 17:27:20 +0000 Subject: [PATCH] Applied patch to reenable single selection mode. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32633 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/listctrl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index 1126d66902..2e9852802b 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -3040,7 +3040,7 @@ void wxListMainWindow::OnMouse( wxMouseEvent &event ) size_t oldCurrent = m_current; bool cmdModifierDown = event.CmdDown(); - if ( !(cmdModifierDown || event.ShiftDown()) ) + if ( IsSingleSel() || !(cmdModifierDown || event.ShiftDown()) ) { if( IsSingleSel() || !IsHighlighted(current) ) {