unselected the current item when unfocusing it in a single selection list control (patch 540818)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15697 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2002-05-28 16:30:24 +00:00
parent fe6dc50a2e
commit 943f6ad3d6

View File

@ -3772,6 +3772,14 @@ void wxListMainWindow::SetItemState( long litem, long state, long stateMask )
{
ResetCurrent();
if ( IsSingleSel() )
{
// we must unselect the old current item as well or we
// might end up with more than one selected item in a
// single selection control
HighlightLine(oldCurrent, FALSE);
}
RefreshLine( oldCurrent );
}
}