From: vsr Date: Wed, 17 Feb 2021 16:01:31 +0000 (+0300) Subject: From Community Forum: Save/Load incorrectly works if there are several Python modules... X-Git-Tag: V9_7_0a1~21 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2b4080cca972dc509b2e1477a07f251c7f45ce18;p=modules%2Fgui.git From Community Forum: Save/Load incorrectly works if there are several Python modules in session - part 2 --- 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; }