mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-11 16:19:16 +05:00
[tuleap26948] : fix of Dump study does not work after study reopening
This commit is contained in:
parent
64f450dfd1
commit
a9cddd8ce9
@ -49,6 +49,8 @@ SALOME_ModuleCatalog::ModuleCatalog_var SMESH_Gen_Session_i::getModuleCatalog()
|
|||||||
return aCat;
|
return aCat;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#include "SMESH_Gen_No_Session_i.hxx"
|
||||||
|
|
||||||
extern "C"
|
extern "C"
|
||||||
{ SMESH_I_EXPORT
|
{ SMESH_I_EXPORT
|
||||||
PortableServer::ObjectId* SMESHEngine_factory( CORBA::ORB_ptr orb,
|
PortableServer::ObjectId* SMESHEngine_factory( CORBA::ORB_ptr orb,
|
||||||
@ -56,8 +58,18 @@ extern "C"
|
|||||||
PortableServer::ObjectId* contId,
|
PortableServer::ObjectId* contId,
|
||||||
const char* instanceName,
|
const char* instanceName,
|
||||||
const char* interfaceName )
|
const char* interfaceName )
|
||||||
|
{
|
||||||
|
CORBA::Object_var o = poa->id_to_reference(*contId);
|
||||||
|
Engines::Container_var cont = Engines::Container::_narrow(o);
|
||||||
|
if(cont->is_SSL_mode())
|
||||||
|
{
|
||||||
|
SMESH_Gen_No_Session_i* aSMESHGen = new SMESH_Gen_No_Session_i(orb, poa, contId, instanceName, interfaceName);
|
||||||
|
return aSMESHGen->getId() ;
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
SMESH_Gen_Session_i* aSMESHGen = new SMESH_Gen_Session_i(orb, poa, contId, instanceName, interfaceName);
|
SMESH_Gen_Session_i* aSMESHGen = new SMESH_Gen_Session_i(orb, poa, contId, instanceName, interfaceName);
|
||||||
return aSMESHGen->getId() ;
|
return aSMESHGen->getId() ;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user