From 8faac81a2471a82e6deb610ed3e9b74e074a567c Mon Sep 17 00:00:00 2001 From: vsr Date: Mon, 15 Feb 2021 14:20:49 +0300 Subject: [PATCH] From Community Forum: Save/Load incorrectly works if there are several Python modules in session --- .../SALOME_PYQT_GUI/SALOME_PYQT_Module.cxx | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) 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 c1f754d19..4b4435388 100644 --- a/src/SALOME_PYQT/SALOME_PYQT_GUI/SALOME_PYQT_Module.cxx +++ b/src/SALOME_PYQT/SALOME_PYQT_GUI/SALOME_PYQT_Module.cxx @@ -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 { -- 2.39.2