]> SALOME platform Git repositories - modules/paravis.git/commitdiff
Salome HOME
Fix hangup on "import pvsimple"
authorvsr <vsr@opencascade.com>
Thu, 31 Oct 2013 13:50:21 +0000 (13:50 +0000)
committervsr <vsr@opencascade.com>
Thu, 31 Oct 2013 13:50:21 +0000 (13:50 +0000)
src/PVGUI/PVGUI_Module.cxx

index e2d8bd34a72211aea4a7e160e3a20cff4afc6ee9..884032f7f49f8d8d1a67084fefee69e154ede3b5 100644 (file)
@@ -638,6 +638,7 @@ void PVGUI_Module::onVariableChanged(pqVariableType t, const QString) {
 
 void PVGUI_Module::execPythonCommand(const QString& cmd, bool inSalomeConsole)
 {
+  if ( PyInterp_Dispatcher::Get()->IsBusy() ) return;
   if ( inSalomeConsole ) {
     SalomeApp_Application* app =
       dynamic_cast< SalomeApp_Application* >(SUIT_Session::session()->activeApplication());