- if ( PyObject_HasAttrString( myModule , "engineIOR" ) ) {
- PyObjWrapper res( PyObject_CallMethod( myModule, (char*)"engineIOR", (char*)"" ) );
- if ( !res ) {
- PyErr_Print();
- }
- else {
- // parse the return value, result chould be string
- if ( PyString_Check( res ) ) {
- myIOR = PyString_AsString( res );
- }
- }
- }
- else if ( !CORBA::is_nil( getEngine() ) )
- myIOR = QString( getApp()->orb()->object_to_string( getEngine() ) );
+/*!
+ \brief Deactivation of the module.
+ \param study parent study
+ \return \c true if deactivation is successful and \c false otherwise
+ \sa PyModuleHelper::deactivate()
+*/
+bool SALOME_PYQT_Module::deactivateModule( SUIT_Study* study )
+{
+ // call helper
+ bool res = myHelper->deactivate( study );
+
+ // ... then call base implementation
+ return SalomeApp_Module::deactivateModule( study ) && res;