From: vsr Date: Thu, 31 Oct 2013 13:50:21 +0000 (+0000) Subject: Fix hangup on "import pvsimple" X-Git-Tag: V7_3_0a1~14 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9c94ac41cbe7492cb9543f1410cf5b8cb79ac1d2;p=modules%2Fparavis.git Fix hangup on "import pvsimple" --- diff --git a/src/PVGUI/PVGUI_Module.cxx b/src/PVGUI/PVGUI_Module.cxx index e2d8bd34..884032f7 100644 --- a/src/PVGUI/PVGUI_Module.cxx +++ b/src/PVGUI/PVGUI_Module.cxx @@ -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());