Salome HOME
Exlude the user input during process events by application (Bug #325).
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_BathymetryBoundsOp.cxx
index 35540e01961c1191d1df8600daa5c0481e47c450..cf042190c10bbab4b2780124e18143c6ec38c38a 100644 (file)
@@ -23,6 +23,7 @@
 #include <HYDROGUI_BathymetryBoundsOp.h>
 #include <HYDROGUI_Tool.h>
 #include <HYDROGUI_UpdateFlags.h>
+#include <HYDROGUI_Module.h>
 
 HYDROGUI_BathymetryBoundsOp::HYDROGUI_BathymetryBoundsOp( HYDROGUI_Module* theModule )
 : HYDROGUI_Operation( theModule )
@@ -53,8 +54,10 @@ bool HYDROGUI_BathymetryBoundsOp::processApply( int& theUpdateFlags, QString& th
 {
   bool isOK = myBath->CreateBoundaryPolyline();
   theUpdateFlags = 0;
-  if( isOK )
-    theUpdateFlags = UF_Model | UF_OCCViewer | UF_OCC_Forced;
+  if( isOK ) {
+    module()->setIsToUpdate( myBath );
+    theUpdateFlags = UF_Model | UF_OCCViewer | UF_OCC_Forced | UF_VTKViewer;
+  }
   else
     theErrorMsg = tr( "CANNOT_CREATE_BOUNDARY_POLYLINE" );
   return isOK;