PackageManager: Cmdline fix

svn path=/trunk/; revision=14580
This commit is contained in:
Maarten Bosma 2005-04-10 17:03:40 +00:00
parent 0ba6cce82a
commit c1a2f01875
4 changed files with 28 additions and 11 deletions

View file

@ -99,7 +99,8 @@ void tree_start (void* usrdata, const char* tag, const char** arg)
// do some manipulation at the parent
else
{
tree->addItem(id, tree->packages[id].name, parents.back(), icon);
if(tree->addItem)
tree->addItem(id, tree->packages[id].name, parents.back(), icon);
// list as child in the parent node
tree->packages[parents.back()].children.push_back(id);