From 31196292be575379f57bf493bc0d3fae9f993df8 Mon Sep 17 00:00:00 2001 From: vsv Date: Tue, 30 Jun 2015 10:22:23 +0300 Subject: [PATCH] Provide pop-up in Salome --- src/NewGeom/NewGeom_Module.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 } -- 2.39.2