]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
Remove action should be enabled if the modification mode is activated and there are...
authornds <nds@opencascade.com>
Wed, 20 Nov 2013 09:02:33 +0000 (09:02 +0000)
committernds <nds@opencascade.com>
Wed, 20 Nov 2013 09:02:33 +0000 (09:02 +0000)
src/HYDROCurveCreator/CurveCreator_Widget.cxx

index 5df7014e834f9399a68e66b8e35f477818c4b016..2c775e6413fe3b506295648f1455a88416bb3cff 100644 (file)
@@ -292,6 +292,8 @@ void CurveCreator_Widget::onSelectionChanged()
   QList<ActionId> anEnabledAct;
   if( myCurve ){
     anEnabledAct << NEW_SECTION_ID << MODIFICATION_MODE_ID;
+    if ( getActionMode() == ModificationMode )
+      anEnabledAct << REMOVE_ID;
     QList<int> aSelSections = mySectionView->getSelectedSections();
     QList< QPair< int, int > > aSelPoints = mySectionView->getSelectedPoints();
     CurveCreator_TreeView::SelectionType aSelType = mySectionView->getSelectionType();