From: vsr Date: Mon, 7 Nov 2005 12:35:57 +0000 (+0000) Subject: Fix PAL10432 X-Git-Tag: V3_1_0a3~59 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d5499153994f1ea7cbfe99b016d878f1b5724744;p=modules%2Fgui.git Fix PAL10432 --- diff --git a/src/SALOME_PYQT/SALOME_PYQT_GUI/SALOME_PYQT_Module.cxx b/src/SALOME_PYQT/SALOME_PYQT_GUI/SALOME_PYQT_Module.cxx index a57726fea..fa2d1a4e3 100644 --- a/src/SALOME_PYQT/SALOME_PYQT_GUI/SALOME_PYQT_Module.cxx +++ b/src/SALOME_PYQT/SALOME_PYQT_GUI/SALOME_PYQT_Module.cxx @@ -489,6 +489,7 @@ void SALOME_PYQT_Module::init( CAM_Application* app ) if( !res ) { // VSR: this method may not be implemented in Python module // PyErr_Print(); + PyErr_Clear(); } // get the windows list from the Python module by calling windows() method @@ -502,6 +503,7 @@ void SALOME_PYQT_Module::init( CAM_Application* app ) if( !res1 ) { // VSR: this method may not be implemented in Python module // PyErr_Print(); + PyErr_Clear(); } else { myWindowsMap.clear(); @@ -526,6 +528,7 @@ void SALOME_PYQT_Module::init( CAM_Application* app ) if( !res2 ) { // VSR: this method may not be implemented in Python module // PyErr_Print(); + PyErr_Clear(); } else { // parse the return value @@ -579,6 +582,7 @@ void SALOME_PYQT_Module::activate( SUIT_Study* theStudy ) if( !res ) { // VSR: this method may not be implemented in Python module // PyErr_Print(); + PyErr_Clear(); } } //__CALL_OLD_METHODS__ @@ -587,6 +591,7 @@ void SALOME_PYQT_Module::activate( SUIT_Study* theStudy ) if( !res1 ) { // VSR: this method may not be implemented in Python module // PyErr_Print(); + PyErr_Clear(); } } @@ -606,6 +611,7 @@ void SALOME_PYQT_Module::deactivate( SUIT_Study* theStudy ) if( !res ) { // VSR: this method may not be implemented in Python module // PyErr_Print(); + PyErr_Clear(); } } @@ -639,6 +645,7 @@ void SALOME_PYQT_Module::studyChanged( SUIT_Study* theStudy ) if( !res ) { // VSR: this method may not be implemented in Python module // PyErr_Print(); + PyErr_Clear(); } } @@ -729,6 +736,7 @@ void SALOME_PYQT_Module::contextMenu( const QString& theContext, QPopupMenu* the if( !res ) { // VSR: this method may not be implemented in Python module // PyErr_Print(); + PyErr_Clear(); } else { // parse return value @@ -757,6 +765,7 @@ void SALOME_PYQT_Module::contextMenu( const QString& theContext, QPopupMenu* the if( !res1 ) { // VSR: this method may not be implemented in Python module // PyErr_Print(); + PyErr_Clear(); } if ( IsCallOldMethods ) { //__CALL_OLD_METHODS__ @@ -772,6 +781,7 @@ void SALOME_PYQT_Module::contextMenu( const QString& theContext, QPopupMenu* the if( !res2 ) { // VSR: this method may not be implemented in Python module // PyErr_Print(); + PyErr_Clear(); } } //__CALL_OLD_METHODS__ } @@ -909,7 +919,7 @@ void SALOME_PYQT_Module::setWorkSpace() if( !res ) { // VSR: this method may not be implemented in Python module // PyErr_Print(); - return; + PyErr_Clear(); } } //__CALL_OLD_METHODS__ }