MESSAGE( "openDocument" );
// initialize myStudyDS, read HDF file
- _PTR(Study) study ( SalomeApp_Application::studyMgr()->NewStudy( newStudyName().latin1() ) );
+ QString aName = newStudyName();
+ _PTR(Study) study ( SalomeApp_Application::studyMgr()->NewStudy( aName.latin1() ) );
if ( !study )
return;
setStudyDS( study );
+ setStudyName( aName );
// create myRoot
setRoot( new SalomeApp_RootObject( this ) );
// close SALOMEDS document
_PTR(Study) studyPtr = studyDS();
- if ( studyPtr.get() )
+ if ( studyPtr )
{
SalomeApp_Application::studyMgr()->Close( studyPtr );
SALOMEDSClient_Study* aStudy = 0;