Salome HOME
Join modifications from branch BR_DEBUG_3_2_0b1
[modules/gui.git] / src / SALOME_PYQT / SALOME_PYQT_GUI / SALOME_PYQT_Module.cxx
index b761e719a74c6014ea34f4c31fd10069b5186ad8..5d11cf06388be06f7bbc0fba62a0b49e18076ea9 100644 (file)
@@ -14,7 +14,7 @@
 // License along with this library; if not, write to the Free Software
 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 //
-// See http://www.salome-platform.org/
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 
 #include "SALOME_PYQT_Module.h"
@@ -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