- found = true;
- int pos = std::find(this->children.begin(), this->children.end(), this->libraries[i]) - this->children.begin();
- checked[pos] = true;
- checkedLibraries[i] = true;
- if(!this->libraries[i]->Refresh(result))
- return false;
+ if (this->libraries[i]->GetName() == libraryName)
+ {
+ found = true;
+ int pos = std::find(this->children.begin(), this->children.end(), this->libraries[i]) - this->children.begin();
+ checked[pos] = true;
+ checkedLibraries[i] = true;
+ if(!this->libraries[i]->Refresh(result))
+ return false;
+ }
+ }
+ if(!found)
+ {
+ modelCDMLibrary* library = new modelCDMLibrary(this, this->path + CDMUtilities::SLASH + stdfileName, stdfileName, this->level + 1);
+ this->libraries.push_back(library);
+ this->children.push_back(library);