From 65850ea5a998d6c2e4549ce0838ff20ba06e44ca Mon Sep 17 00:00:00 2001 From: asv Date: Thu, 6 Apr 2006 08:57:32 +0000 Subject: [PATCH] Fixed a bug with renaming GUI state object (ObjBrowser was not updated correctly) --- src/SalomeApp/SalomeApp_Application.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SalomeApp/SalomeApp_Application.cxx b/src/SalomeApp/SalomeApp_Application.cxx index ea8fa4725..ccff1f8fb 100644 --- a/src/SalomeApp/SalomeApp_Application.cxx +++ b/src/SalomeApp/SalomeApp_Application.cxx @@ -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::Iterator it = mapDO.begin(); it != mapDO.end(); ++it ) delete it.data(); - } -- 2.39.2