[ros-diffs] [gedmurphy] 44682: Don't re-add the dependants
gedmurphy at svn.reactos.org
gedmurphy at svn.reactos.org
Mon Dec 21 17:17:18 CET 2009
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/servman/propsheet_depends.c?rev=44682&r1=44681&r2=44682&view=diff
==============================================================================
--- 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;
More information about the Ros-diffs
mailing list