X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSALOME_PYQT%2FSALOME_PYQT_GUI%2FSALOME_PYQT_Module.cxx;h=084ff8576b53f8be6bf748dd770404e2ef802935;hb=refs%2Ftags%2FV9_11_0;hp=b1cb8ec9e02053c4d95fab9192dde14f472f1b47;hpb=41279a9323521bc2e2d9f83921bb6d5ca7836d99;p=modules%2Fgui.git diff --git a/src/SALOME_PYQT/SALOME_PYQT_GUI/SALOME_PYQT_Module.cxx b/src/SALOME_PYQT/SALOME_PYQT_GUI/SALOME_PYQT_Module.cxx index b1cb8ec9e..084ff8576 100644 --- a/src/SALOME_PYQT/SALOME_PYQT_GUI/SALOME_PYQT_Module.cxx +++ b/src/SALOME_PYQT/SALOME_PYQT_GUI/SALOME_PYQT_Module.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2023 CEA, EDF, OPEN CASCADE // // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS @@ -112,16 +112,12 @@ SALOME_PYQT_Module::~SALOME_PYQT_Module() */ QString SALOME_PYQT_Module::engineIOR() const { - // call helper to get IOR from Python module - static QString ior; + // first call helper to get IOR from Python module + QString ior = myHelper->engineIOR(); + // if IOR is still not specified, try default implementation + // which loads engine to the default FactoryServer container. if ( ior.isEmpty() ) { - // first call helper to get IOR from Python module - ior = myHelper->engineIOR(); - } - if ( ior.isEmpty() ) { - // if IOR is still not specified, try default implementation - // which loads engine to the default FactoryServer container. Engines::EngineComponent_var comp; // temporary solution try {