]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Fixed a bug with renaming GUI state object (ObjBrowser was not updated correctly)
authorasv <asv@opencascade.com>
Thu, 6 Apr 2006 08:57:32 +0000 (08:57 +0000)
committerasv <asv@opencascade.com>
Thu, 6 Apr 2006 08:57:32 +0000 (08:57 +0000)
src/SalomeApp/SalomeApp_Application.cxx

index ea8fa4725a74ececd56b8a6f801d779d2a3403b0..ccff1f8fbdc67a7b56db47dfb5ef5b272ba90902 100644 (file)
@@ -962,6 +962,7 @@ void SalomeApp_Application::onRenameGUIState()
   if ( !newName.isNull() && !newName.isEmpty() ) {
     study->setNameOfSavePoint( savePoint, newName );
     updateSavePointDataObjects( study );
+    objectBrowser()->updateTree( study->root() );
   }
 }
 
@@ -1080,6 +1081,5 @@ void SalomeApp_Application::updateSavePointDataObjects( SalomeApp_Study* study )
   // delete DataObjects that are still in the map -- their IDs were not found in data model
   for ( QMap<int,SalomeApp_SavePointObject*>::Iterator it = mapDO.begin(); it != mapDO.end(); ++it )
     delete it.data();
-
 }