]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
From Community Forum: Save/Load incorrectly works if there are several Python modules...
authorvsr <vsr@opencascade.com>
Wed, 17 Feb 2021 16:01:31 +0000 (19:01 +0300)
committervsr <vsr@opencascade.com>
Wed, 17 Feb 2021 16:01:31 +0000 (19:01 +0300)
src/SALOME_PYQT/SALOME_PYQT_GUILight/SALOME_PYQT_PyModule.cxx

index e0c141ed9543a090793cc255907b38e0b89fe73a..fc38de052c3d606bc0570aedde0a0e54045ee1a1 100644 (file)
@@ -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<PyModuleHelper*>( this ),
-                                      anIOR ) );
-  }
-
+  QString anIOR;
+  // post request
+  PyInterp_Dispatcher::Get()->Exec( new EngineIORReq( myInterp, 
+                                                     const_cast<PyModuleHelper*>( this ),
+                                                     anIOR ) );
   return anIOR;
 }