Author: gedmurphy
Date: Mon Dec 21 17:17:18 2009
New Revision: 44682
URL:
http://svn.reactos.org/svn/reactos?rev=44682&view=rev
Log:
Don't re-add the dependants
Modified:
trunk/reactos/base/applications/mscutils/servman/propsheet_depends.c
Modified: trunk/reactos/base/applications/mscutils/servman/propsheet_depends.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mscutils…
==============================================================================
--- trunk/reactos/base/applications/mscutils/servman/propsheet_depends.c [iso-8859-1]
(original)
+++ trunk/reactos/base/applications/mscutils/servman/propsheet_depends.c [iso-8859-1] Mon
Dec 21 17:17:18 2009
@@ -223,11 +223,21 @@
{
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)
{
- 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;