]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Fix a bug: DefinePopup() method: context is given in "parent" parameter (to simulate...
authorvsr <vsr@opencascade.com>
Fri, 19 May 2006 08:39:52 +0000 (08:39 +0000)
committervsr <vsr@opencascade.com>
Fri, 19 May 2006 08:39:52 +0000 (08:39 +0000)
src/SALOME_PYQT/SALOME_PYQT_GUI/SALOME_PYQT_Module.cxx

index b761e719a74c6014ea34f4c31fd10069b5186ad8..6683c415e9399c5cc769f3573f995c09284bbd2b 100644 (file)
@@ -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