From: asv Date: Thu, 6 Apr 2006 08:57:32 +0000 (+0000) Subject: Fixed a bug with renaming GUI state object (ObjBrowser was not updated correctly) X-Git-Tag: T3_2_0b1_pre1~41 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=65850ea5a998d6c2e4549ce0838ff20ba06e44ca;p=modules%2Fgui.git Fixed a bug with renaming GUI state object (ObjBrowser was not updated correctly) --- 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(); - }