Salome HOME
Define canBreakLink parameter
[modules/smesh.git] / src / SMESHGUI / SMESHGUI.cxx
index 4a612b59d2c8d3bdb4aea6248a6e34834a9cbacb..5a3747d0ca34696eb8f3af68b23e371305b18f2e 100644 (file)
@@ -4888,7 +4888,7 @@ void SMESHGUI::initialize( CAM_Application* app )
   popupMgr()->insert( separator(), -1, -1 );
 
   popupMgr()->insert( action( SMESHOp::OpBreakLink), -1, -1 );
-  popupMgr()->setRule( action( SMESHOp::OpBreakLink), "$component={'SHAPERSTUDY'} and client='ObjectBrowser'", QtxPopupMgr::VisibleRule );
+  popupMgr()->setRule( action( SMESHOp::OpBreakLink), "$component={'SHAPERSTUDY'} and client='ObjectBrowser' and canBreakLink", QtxPopupMgr::VisibleRule );
 
   connect( application(), SIGNAL( viewManagerActivated( SUIT_ViewManager* ) ),
            this, SLOT( onViewManagerActivated( SUIT_ViewManager* ) ) );