From 31239186837a56ed7b2cc856675436030f10b5f3 Mon Sep 17 00:00:00 2001 From: nds Date: Wed, 20 Nov 2013 09:02:33 +0000 Subject: [PATCH] Remove action should be enabled if the modification mode is activated and there are no selected Section item. --- src/HYDROCurveCreator/CurveCreator_Widget.cxx | 2 ++ 1 file changed, 2 insertions(+) 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(); -- 2.39.2