]> Creatis software - crea.git/blobdiff - lib/creaDevManagerLib/wxCDMProjectsTreeCtrl.cxx
Feature #1711
[crea.git] / lib / creaDevManagerLib / wxCDMProjectsTreeCtrl.cxx
index eba2c0de19da2c74a60e1ce592a6cc7800fed633..e05fa97b0711b743550fcbcd1ed2491dd74e272a 100755 (executable)
@@ -81,6 +81,8 @@ bool wxCDMProjectsTreeCtrl::Create(
 {
   wxTreeCtrl::Create (parent, id, pos, size, style, validator, name);
 
+  this->DeleteAllItems();
+
   wxImageList* images = new wxImageList(20, 20, true);
   this->ID_AIcon = images->Add(wxIcon(AIcon20));
   this->ID_ApIcon = images->Add(wxIcon(ApIcon20));
@@ -95,7 +97,9 @@ bool wxCDMProjectsTreeCtrl::Create(
   this->ID_PkIcon = images->Add(wxIcon(PkIcon20));
   this->AssignImageList(images);
 
-  wxTreeItemId rootIndex = this-> AddRoot(_("No Open Project"), this->ID_Cicon, this->ID_Cicon);
+  wxTreeItemId rootId = AddRoot(wxT("Root"), 0, 0);
+/*
+  wxTreeItemId rootIndex = this->AddRoot(wxT("No Open Project"), this->ID_Cicon, this->ID_Cicon);*/
   this->Update();
   return TRUE;
 }