From: vsv Date: Tue, 30 Jun 2015 07:22:23 +0000 (+0300) Subject: Provide pop-up in Salome X-Git-Tag: V_1.3.0~157 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=31196292be575379f57bf493bc0d3fae9f993df8;p=modules%2Fshaper.git Provide pop-up in Salome --- diff --git a/src/NewGeom/NewGeom_Module.cpp b/src/NewGeom/NewGeom_Module.cpp index 3a0227476..794b12ff2 100644 --- a/src/NewGeom/NewGeom_Module.cpp +++ b/src/NewGeom/NewGeom_Module.cpp @@ -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 }