msi: Update the feature components' states when a feature is selected.

oldstable
James Hawkins 2006-07-17 15:17:38 -07:00 committed by Alexandre Julliard
parent f8e4d4ccee
commit 7745a831a1
1 changed files with 8 additions and 0 deletions

View File

@ -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;
}