X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcreaDevManagerLib%2FwxCDMProjectsTreeCtrl.cxx;h=e05fa97b0711b743550fcbcd1ed2491dd74e272a;hb=921c85646eb457d9e8cfc1a9031481df176970ce;hp=eba2c0de19da2c74a60e1ce592a6cc7800fed633;hpb=5ff0bb2664c3cd508c1dd438666a71b8a96459c3;p=crea.git diff --git a/lib/creaDevManagerLib/wxCDMProjectsTreeCtrl.cxx b/lib/creaDevManagerLib/wxCDMProjectsTreeCtrl.cxx index eba2c0d..e05fa97 100755 --- a/lib/creaDevManagerLib/wxCDMProjectsTreeCtrl.cxx +++ b/lib/creaDevManagerLib/wxCDMProjectsTreeCtrl.cxx @@ -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; }