From 2b4080cca972dc509b2e1477a07f251c7f45ce18 Mon Sep 17 00:00:00 2001 From: vsr Date: Wed, 17 Feb 2021 19:01:31 +0300 Subject: [PATCH] From Community Forum: Save/Load incorrectly works if there are several Python modules in session - part 2 --- .../SALOME_PYQT_GUILight/SALOME_PYQT_PyModule.cxx | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/src/SALOME_PYQT/SALOME_PYQT_GUILight/SALOME_PYQT_PyModule.cxx b/src/SALOME_PYQT/SALOME_PYQT_GUILight/SALOME_PYQT_PyModule.cxx index e0c141ed9..fc38de052 100644 --- a/src/SALOME_PYQT/SALOME_PYQT_GUILight/SALOME_PYQT_PyModule.cxx +++ b/src/SALOME_PYQT/SALOME_PYQT_GUILight/SALOME_PYQT_PyModule.cxx @@ -1716,15 +1716,11 @@ QString PyModuleHelper::engineIOR() const QString& myIOR; }; - static QString anIOR; - - if ( anIOR.isEmpty() ) { - // post request - PyInterp_Dispatcher::Get()->Exec( new EngineIORReq( myInterp, - const_cast( this ), - anIOR ) ); - } - + QString anIOR; + // post request + PyInterp_Dispatcher::Get()->Exec( new EngineIORReq( myInterp, + const_cast( this ), + anIOR ) ); return anIOR; } -- 2.39.2