if (sb && sb->openp)
if (sb )
addContainerItem (HT_Resource container, RDF_Resource item){	HT_Resource		nc, ch, parent;	SBProvider		sb;	if ((nc = newHTEntry(container->view, item)) != NULL)	{		ch = container->child;		nc->view = container->view;		nc->parent = container;		nc->next = container->child;		container->child = nc;		nc->depth = container->depth + 1;		++container->numChildren;		nc->unsortedIndex = container->numChildren;		refreshContainerIndexes(container);	  		parent = container;		while (parent != NULL)		{			++(parent->numChildrenTotal);			parent=parent->parent;		}		sb = SBProviderOfNode(nc);		if (sb && sb->openp)		{			nc->flags |= HT_OPEN_FLAG;		}		else		{			nc->flags &= (~HT_OPEN_FLAG);		}		refreshItemList(nc, HT_EVENT_NODE_ADDED);		if (gAutoEditNewNode == true)		{			gAutoEditNewNode = false;			HT_SetSelection (nc);			sendNotification(nc, HT_EVENT_NODE_SCROLLTO);			sendNotification(nc, HT_EVENT_NODE_EDIT);		}		if ((gAutoOpenPane != NULL) && (gAutoOpenPane == nc->view->pane))		{			gAutoOpenPane = NULL;			HT_SetOpenState(nc, PR_TRUE);			nc->flags &= (~HT_INITED_FLAG);		}	}	return(nc);}