modelCDMAppli::modelCDMAppli(const std::string& path, const std::string& name, const int& level)
{
+ std::cout << "creating appli\n";
this->type = wxDIR_DIRS;
this->name = name;
this->level = level;
}
this->SortChildren();
+ std::sort(this->applications.begin(), this->applications.end(), CompareNodeItem);
}
modelCDMAppli::~modelCDMAppli()
std::string applicationName = stdfileName;
//check if they already exist
bool found = false;
- for (int i = 0;!found && i < this->applications.size(); i++)
+ for (int i = 0; !found && i < this->applications.size(); i++)
{
if (this->applications[i]->GetName() == applicationName)
{
else
{
bool found = false;
- for (int i = 0; i <!found && this->children.size(); i++)
+ for (int i = 0; !found && i < this->children.size(); i++)
{
if (this->children[i]->GetName() == stdfileName)
{
}
}
this->SortChildren();
+ std::sort(this->applications.begin(), this->applications.end(), CompareNodeItem);
return true;
}