]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Provide pop-up in Salome
authorvsv <vitaly.smetannikov@opencascade.com>
Tue, 30 Jun 2015 07:22:23 +0000 (10:22 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Tue, 30 Jun 2015 07:22:34 +0000 (10:22 +0300)
src/NewGeom/NewGeom_Module.cpp

index 3a0227476b3619f0307882bd85da043d8f3f7b1c..794b12ff256069f370066f0cfabc8d807ad36b87 100644 (file)
@@ -523,9 +523,11 @@ void NewGeom_Module::selectionChanged()
 //******************************************************
 void NewGeom_Module::contextMenuPopup(const QString& theClient, QMenu* theMenu, QString& theTitle)
 {
-  theMenu->addActions(myWorkshop->contextMenuMgr()->viewerMenu()->actions());
+  QMenu* aMenu = myWorkshop->contextMenuMgr()->viewerMenu();
+  theMenu->addActions(aMenu->actions());
   //myWorkshop->contextMenuMgr()->addViewerMenu(theMenu);
   LightApp_Module::contextMenuPopup(theClient, theMenu, theTitle);
+  delete aMenu; // Delete menu because it is not controlled by menu manager
 }