Salome HOME
add method NameChanged to update title name
[modules/kernel.git] / src / SALOMEDSImpl / SALOMEDSImpl_Study.cxx
index 4d26ae7a977bc47e39a8ab139949b7973bd61561..a9fae3dae14faf9dbeb30d0cc4950f6f98837b05 100644 (file)
@@ -138,7 +138,9 @@ SALOMEDSImpl_Study::~SALOMEDSImpl_Study()
 void SALOMEDSImpl_Study::Init()
 {
   static int _id = 0;
-  _name = "Study" + std::to_string(++_id);
+  std::stringstream sstrm;
+  sstrm << ++_id;
+  _name = "Study" + std::string(sstrm.str());
   _doc = _appli->NewDocument("SALOME_STUDY");
   _Saved = false ;
   _URL = "";
@@ -2492,7 +2494,7 @@ bool SALOMEDSImpl_Study::DumpStudy(const std::string& thePath,
 
   sfp << std::endl;
   sfp << "if salome.sg.hasDesktop():" << std::endl;
-  sfp << "\tsalome.sg.updateObjBrowser(True)" << std::endl;
+  sfp << "\tsalome.sg.updateObjBrowser()" << std::endl;
 
   if(isDumpVisuals) { //Output the call to Session's method restoreVisualState
     sfp << "\tiparameters.getSession().restoreVisualState(1)" << std::endl;