X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSession%2FSALOME_Session_Server.cxx;h=4d34b5e5822f4c08160cc49bb2b8ca8d13929900;hb=79bb613bc02da5864a9c4199f78c078cc77e78e2;hp=46030c5385088981c006c25ba0a85d39d6916bf6;hpb=aa60cd50671f8d244df922059c512bdf1e4d6419;p=modules%2Fgui.git diff --git a/src/Session/SALOME_Session_Server.cxx b/src/Session/SALOME_Session_Server.cxx index 46030c538..4d34b5e58 100755 --- a/src/Session/SALOME_Session_Server.cxx +++ b/src/Session/SALOME_Session_Server.cxx @@ -259,19 +259,6 @@ public: virtual bool notify( QObject* receiver, QEvent* e ) { -#if OCC_VERSION_LARGE < 0x06010100 - // Disable GUI user actions while python command is executed - if (SUIT_Session::IsPythonExecuted()) { - // Disable mouse and keyboard events - QEvent::Type aType = e->type(); - if (aType == QEvent::MouseButtonPress || aType == QEvent::MouseButtonRelease || - aType == QEvent::MouseButtonDblClick || aType == QEvent::MouseMove || - aType == QEvent::Wheel || aType == QEvent::ContextMenu || - aType == QEvent::KeyPress || aType == QEvent::KeyRelease || - aType == QEvent::Accel || aType == QEvent::AccelOverride) - return false; - } -#endif #ifdef ENABLE_TESTRECORDER return myHandler ? myHandler->handle( receiver, e ) : @@ -666,9 +653,11 @@ int main( int argc, char **argv ) init->explicit_destroy(); // After ORB destruction - PyGILState_Ensure(); if(Py_IsInitialized()) - Py_Finalize(); + { + PyGILState_Ensure(); + Py_Finalize(); + } if ( shutdownAll ) killOmniNames();