Commit 147bc6d2 authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

Ownerdata listviews were not clearing previously selected items when a

new item is set as selected using SetItem and the listview has LVIS_SINGLESEL.
parent b7b4fd03
......@@ -2549,7 +2549,13 @@ static BOOL LISTVIEW_SetItem(HWND hwnd, LPLVITEMA lpLVItem)
if (lpLVItem->stateMask & LVIS_SELECTED)
{
if (lpLVItem->state & LVIS_SELECTED)
{
if (lStyle & LVS_SINGLESEL)
{
LISTVIEW_RemoveAllSelections(hwnd);
}
LISTVIEW_AddSelectionRange(hwnd,lpLVItem->iItem,lpLVItem->iItem);
}
else
LISTVIEW_RemoveSelectionRange(hwnd,lpLVItem->iItem,
lpLVItem->iItem);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment