]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Delete action in OCC viewer correction.
authornds <natalia.ermolaeva@opencascade.com>
Wed, 16 Nov 2016 05:10:29 +0000 (08:10 +0300)
committernds <natalia.ermolaeva@opencascade.com>
Wed, 16 Nov 2016 05:10:29 +0000 (08:10 +0300)
src/GEOMGUI/GeometryGUI.cxx

index e59a6d9fc2b89ffa1cd8648a1b8c7e875bcb4b39..90c9a8ca5a6292e8a8693d7e6b0c0b906af0f3f1 100755 (executable)
@@ -1625,7 +1625,7 @@ void GeometryGUI::initialize( CAM_Application* app )
   mgr->insert( action(  GEOMOp::OpEditAnnotation ), -1, -1 );  // edit annotation
   mgr->setRule( action( GEOMOp::OpEditAnnotation ),  clientOCC + " and annotationsCount=1", QtxPopupMgr::VisibleRule );
   mgr->insert( action(  GEOMOp::OpDeleteAnnotation ), -1, -1 );  // delete annotation
-  mgr->setRule( action( GEOMOp::OpDeleteAnnotation ),  clientOCC + " and (annotationsCount>1)", QtxPopupMgr::VisibleRule );
+  mgr->setRule( action( GEOMOp::OpDeleteAnnotation ),  clientOCC + " and annotationsCount>0", QtxPopupMgr::VisibleRule );
   mgr->insert( separator(), -1, -1 );     // -----------
 
   QString canDisplay = "($component={'GEOM'}) and (selcount>0) and ({true} in $canBeDisplayed) ",