From 16287ba0db7e6e97edb4692d5c11ceb776a6919b Mon Sep 17 00:00:00 2001 From: vsr Date: Fri, 19 May 2006 08:39:52 +0000 Subject: [PATCH] Fix a bug: DefinePopup() method: context is given in "parent" parameter (to simulate exact SALOME2 behavior) --- src/SALOME_PYQT/SALOME_PYQT_GUI/SALOME_PYQT_Module.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2