)
{
wxTreeCtrl::Create (parent, id, pos, size, style, validator, name);
- wxTreeItemId rootIndex = this-> AddRoot(_("Open Projects"));
+ wxTreeItemId rootIndex = this-> AddRoot(_("No Open Project"));
this->Update();
return TRUE;
}
void wxCDMProjectsTreeCtrl::BuildTree(modelCDMProject* projectTree)
{
+ this->DeleteAllItems();
if(projectTree != NULL)
{
- this->DeleteAllItems();
wxTreeItemId rootIndex;
rootIndex= this-> AddRoot(crea::std2wx(projectTree->GetName()));
projectTree->SetId(rootIndex);
this->Update();
}
+ else
+ {
+ wxTreeItemId rootIndex = this-> AddRoot(_("No Open Project"));
+ }
}
void wxCDMProjectsTreeCtrl::BuildTree(const std::vector<modelCDMIProjectTreeNode*>& treeNodes, wxTreeItemId parent)