modelCDMApplication::modelCDMApplication(const std::string& path, const std::string& name, const int& level)
{
+ std::cout << "creating application: " + path + "\n";
//folder name
this->name = name;
//path
}
}
this->SortChildren();
+ std::sort(this->folders.begin(), this->folders.end(), CompareNodeItem);
}
modelCDMApplication::~modelCDMApplication()
const bool modelCDMApplication::Refresh(std::string*& result)
{
+ std::cout << "refreshing application: " << this->executableName << std::endl;
//set attributes
this->type = wxDIR_DIRS;
std::string applicationName = stdfileName;
//check if they already exist
bool found = false;
- for (int i = 0;!found && i < this->folders.size(); i++)
+ for (int i = 0; !found && i < this->folders.size(); i++)
{
if (this->folders[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)
{