wrong loading with 2 studies
while (SUIT_Application* aSApp = anIter.current()) {
if(SalomeApp_Application* anApp = dynamic_cast<SalomeApp_Application*>(aSApp)){
if(SalomeApp_Study* aStudy = dynamic_cast<SalomeApp_Study*>(anApp->activeStudy())) {
- myResult = aStudy->studyDS();
- break;
+ if(_PTR(Study) aStudyDS = aStudy->studyDS()){
+ if(aStudyDS->StudyId() == myStudyId){
+ myResult = aStudy->studyDS();
+ break;
+ }
+ }
}
}
++anIter;