Salome HOME
Study name is missing from SALOME title
[modules/gui.git] / src / SalomeApp / SalomeApp_Study.cxx
index 8f3b4673a8b4f13db14a4a916187420851e49261..a902c11e1bd26eb2cf754b919d9ea1d52001e004 100644 (file)
@@ -432,7 +432,7 @@ QString SalomeApp_Study::studyName() const
   // it can be changed outside of GUI
   // TEMPORARILY SOLUTION: better to be implemented with help of SALOMEDS observers
   if ( studyDS() ) {
-    QString newName = QString::fromUtf8(studyDS()->URL().c_str());
+    QString newName = QString::fromUtf8(studyDS()->Name().c_str());
     if ( LightApp_Study::studyName() != newName ) {
       SalomeApp_Study* that = const_cast<SalomeApp_Study*>( this );
       that->setStudyName( newName );