From: nds Date: Wed, 20 Nov 2013 09:02:33 +0000 (+0000) Subject: Remove action should be enabled if the modification mode is activated and there are... X-Git-Tag: BR_hydro_v_0_3_1~42 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=31239186837a56ed7b2cc856675436030f10b5f3;p=modules%2Fhydro.git Remove action should be enabled if the modification mode is activated and there are no selected Section item. --- diff --git a/src/HYDROCurveCreator/CurveCreator_Widget.cxx b/src/HYDROCurveCreator/CurveCreator_Widget.cxx index 5df7014e..2c775e64 100644 --- a/src/HYDROCurveCreator/CurveCreator_Widget.cxx +++ b/src/HYDROCurveCreator/CurveCreator_Widget.cxx @@ -292,6 +292,8 @@ void CurveCreator_Widget::onSelectionChanged() QList anEnabledAct; if( myCurve ){ anEnabledAct << NEW_SECTION_ID << MODIFICATION_MODE_ID; + if ( getActionMode() == ModificationMode ) + anEnabledAct << REMOVE_ID; QList aSelSections = mySectionView->getSelectedSections(); QList< QPair< int, int > > aSelPoints = mySectionView->getSelectedPoints(); CurveCreator_TreeView::SelectionType aSelType = mySectionView->getSelectionType();