mirror of
https://github.com/reactos/wine.git
synced 2025-02-12 23:58:56 +00:00
Don't send TVN_SELCHANGING nor TVN_SELCHANGED if the same item is
selected again.
This commit is contained in:
parent
1fc0e675fc
commit
112df73530
@ -4221,6 +4221,11 @@ TREEVIEW_DoSelectItem(TREEVIEW_INFO *infoPtr, INT action, HTREEITEM newSelect,
|
||||
case TVGN_CARET:
|
||||
prevSelect = infoPtr->selectedItem;
|
||||
|
||||
if (prevSelect == newSelect) {
|
||||
TREEVIEW_EnsureVisible(infoPtr, infoPtr->selectedItem, FALSE);
|
||||
break;
|
||||
}
|
||||
|
||||
if (TREEVIEW_SendTreeviewNotify(infoPtr,
|
||||
TVN_SELCHANGINGW,
|
||||
cause,
|
||||
|
Loading…
x
Reference in New Issue
Block a user