From: vsr Date: Fri, 19 May 2006 08:39:52 +0000 (+0000) Subject: Fix a bug: DefinePopup() method: context is given in "parent" parameter (to simulate... X-Git-Tag: V3_2_0rc~22 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=16287ba0db7e6e97edb4692d5c11ceb776a6919b;p=modules%2Fgui.git Fix a bug: DefinePopup() method: context is given in "parent" parameter (to simulate exact SALOME2 behavior) --- 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 b761e719a..6683c415e 100644 --- a/src/SALOME_PYQT/SALOME_PYQT_GUI/SALOME_PYQT_Module.cxx +++ b/src/SALOME_PYQT/SALOME_PYQT_GUI/SALOME_PYQT_Module.cxx @@ -848,7 +848,7 @@ void SALOME_PYQT_Module::contextMenu( const QString& theContext, QPopupMenu* the if ( !myInterp || !myModule ) return; - QString aContext( theContext ), aObject( "" ), aParent( "" ); + QString aContext( "" ), aObject( "" ), aParent( theContext ); if ( IsCallOldMethods && PyObject_HasAttrString(myModule , "definePopup") ) { //__CALL_OLD_METHODS__ // call definePopup() Python module's function