mirror of
https://github.com/reactos/reactos.git
synced 2025-04-25 08:00:24 +00:00
Don't re-add the dependants
svn path=/trunk/; revision=44682
This commit is contained in:
parent
41cc052638
commit
be248aceed
1 changed files with 12 additions and 2 deletions
|
@ -223,11 +223,21 @@ DependenciesPageProc(HWND hwndDlg,
|
||||||
{
|
{
|
||||||
if (lpnmtv->hdr.idFrom == IDC_DEPEND_TREE1)
|
if (lpnmtv->hdr.idFrom == IDC_DEPEND_TREE1)
|
||||||
{
|
{
|
||||||
TV1_AddDependantsToTree(pDlgInfo, lpnmtv->itemNew.hItem, (LPTSTR)lpnmtv->itemNew.lParam);
|
/* Has this node been expanded before */
|
||||||
|
if (!TreeView_GetChild(pDlgInfo->hDependsTreeView1, lpnmtv->itemNew.hItem))
|
||||||
|
{
|
||||||
|
/* It's not, add the children */
|
||||||
|
TV1_AddDependantsToTree(pDlgInfo, lpnmtv->itemNew.hItem, (LPTSTR)lpnmtv->itemNew.lParam);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (lpnmtv->hdr.idFrom == IDC_DEPEND_TREE2)
|
else if (lpnmtv->hdr.idFrom == IDC_DEPEND_TREE2)
|
||||||
{
|
{
|
||||||
TV2_AddDependantsToTree(pDlgInfo, lpnmtv->itemNew.hItem, (LPTSTR)lpnmtv->itemNew.lParam);
|
/* Has this node been expanded before */
|
||||||
|
if (!TreeView_GetChild(pDlgInfo->hDependsTreeView1, lpnmtv->itemNew.hItem))
|
||||||
|
{
|
||||||
|
/* It's not, add the children */
|
||||||
|
TV2_AddDependantsToTree(pDlgInfo, lpnmtv->itemNew.hItem, (LPTSTR)lpnmtv->itemNew.lParam);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue