From 5abeb2e8facd01beb26ecaddf28ca207200036c2 Mon Sep 17 00:00:00 2001 From: srn Date: Mon, 20 Mar 2006 14:11:42 +0000 Subject: [PATCH] Bugs: IPAL11874 and IPAL11875, added an event processing while deleting the ViewManagers --- src/SalomeApp/SalomeApp_Study.cxx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/SalomeApp/SalomeApp_Study.cxx b/src/SalomeApp/SalomeApp_Study.cxx index fa686e4b2..8b154b433 100644 --- a/src/SalomeApp/SalomeApp_Study.cxx +++ b/src/SalomeApp/SalomeApp_Study.cxx @@ -44,7 +44,8 @@ #include "SALOMEDS_Tool.hxx" -#include "SALOMEDS_IParameters.hxx" +#include "SALOMEDSClient_ClientFactory.hxx" +#include "SALOMEDSClient_IParameters.hxx" #include #include CORBA_SERVER_HEADER(SALOME_Exception) @@ -709,8 +710,8 @@ void SalomeApp_Study::removeSavePoint(int savePoint) QString SalomeApp_Study::getNameOfSavePoint(int savePoint) { _PTR(AttributeParameter) AP = studyDS()->GetCommonParameters(getVisualComponentName(), savePoint); - SALOMEDS_IParameters ip(AP); - return ip.getProperty("AP_SAVEPOINT_NAME").c_str(); + _PTR(IParameters) ip = ClientFactory::getIParameters(AP); + return ip->getProperty("AP_SAVEPOINT_NAME"); } //================================================================ @@ -721,8 +722,8 @@ QString SalomeApp_Study::getNameOfSavePoint(int savePoint) void SalomeApp_Study::setNameOfSavePoint(int savePoint, const QString& nameOfSavePoint) { _PTR(AttributeParameter) AP = studyDS()->GetCommonParameters(getVisualComponentName(), savePoint); - SALOMEDS_IParameters ip(AP); - ip.setProperty("AP_SAVEPOINT_NAME", nameOfSavePoint.latin1()); + _PTR(IParameters) ip = ClientFactory::getIParameters(AP); + ip->setProperty("AP_SAVEPOINT_NAME", nameOfSavePoint.latin1()); } //================================================================ -- 2.39.2