msi: Update the feature components' states when a feature is selected.
This commit is contained in:
parent
f8e4d4ccee
commit
7745a831a1
|
@ -1509,6 +1509,7 @@ static LRESULT
|
|||
msi_seltree_menu( HWND hwnd, HTREEITEM hItem )
|
||||
{
|
||||
MSIFEATURE *feature;
|
||||
ComponentList *cl;
|
||||
union {
|
||||
RECT rc;
|
||||
POINT pt[2];
|
||||
|
@ -1545,6 +1546,13 @@ msi_seltree_menu( HWND hwnd, HTREEITEM hItem )
|
|||
/* update */
|
||||
msi_seltree_sync_item_state( hwnd, feature, hItem );
|
||||
|
||||
/* update the feature's components */
|
||||
LIST_FOR_EACH_ENTRY( cl, &feature->Components, ComponentList, entry )
|
||||
{
|
||||
cl->component->Action = feature->Action;
|
||||
cl->component->ActionRequest = feature->ActionRequest;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue