]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
refs #1326: unchecking the button on operation finish
authorasl <asl@opencascade.com>
Wed, 11 Oct 2017 11:34:21 +0000 (14:34 +0300)
committerasl <asl@opencascade.com>
Wed, 11 Oct 2017 11:34:21 +0000 (14:34 +0300)
src/HYDROGUI/HYDROGUI_BathymetrySelectionOp.cxx

index 2aeb9daaf93de8e957904b54328a748e1b51fd45..9786506dd70a346157cd5b4e80d65e1ac1ce33e8 100644 (file)
 #include <HYDROGUI_BathymetryPrs.h>
 #include <HYDROGUI_BathymetryOp.h>
 #include <HYDROGUI_ShapeBathymetry.h>
+#include <HYDROGUI_Operations.h>
 #include <OCCViewer_ViewManager.h>
 #include <LightApp_Application.h>
+#include <QAction>
 
 HYDROGUI_BathymetrySelectionOp::HYDROGUI_BathymetrySelectionOp( HYDROGUI_Module* theModule )
 : HYDROGUI_Operation( theModule ), myIsActive( false )
@@ -42,6 +44,8 @@ void HYDROGUI_BathymetrySelectionOp::startOperation()
 void HYDROGUI_BathymetrySelectionOp::abortOperation()
 {
   activateSelection( false );
+
+  module()->action( BathymetrySelectionId )->setChecked( false );
 }
 
 bool HYDROGUI_BathymetrySelectionOp::isValid( SUIT_Operation* theOtherOp ) const