{
_PTR(Study) aStudyDS = newStudy->studyDS();
app->getNoteBook()->Init( aStudyDS );
- if( theIsStudySaved ) {
- newStudy->markAsSavedIn( theStudyName );
- newStudy->Modified();
- }
+ newStudy->updateFromNotebook(theStudyName, theIsStudySaved);
+ newStudy->Modified();
+ updateDesktopTitle();
+ updateActions();
}
else
ok = false;
Mark the study as saved in the file
\param theFileName - the name of file
*/
-void SalomeApp_Study::markAsSavedIn(QString theFileName)
+void SalomeApp_Study::updateFromNotebook( const QString& theFileName, bool isSaved )
{
setStudyName(theFileName);
- setIsSaved(true);
+ studyDS()->Name(theFileName.toStdString());
+ setIsSaved( isSaved );
}
LightApp_DataObject* SalomeApp_Study::findObjectByEntry( const QString& theEntry )
void setNameOfSavePoint(int savePoint, const QString& nameOfSavePoint);
virtual void restoreState(int savePoint);
- void markAsSavedIn(QString theFileName);
+ void updateFromNotebook(const QString&, bool);
virtual LightApp_DataObject* findObjectByEntry( const QString& theEntry );