Salome HOME
portage V8_5_0
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_RiverBottomOp.cxx
index 0506f1d1976d243c9d0dd2cc27a3bd33aa2b4ad5..8311fd7b3d86fa9914cc8ee2a9bc75c003c4b426 100644 (file)
@@ -24,7 +24,7 @@
 #include "HYDROGUI_DataObject.h"
 #include "HYDROGUI_Module.h"
 #include "HYDROGUI_Shape.h"
-#include "HYDROGUI_Tool.h"
+#include "HYDROGUI_Tool2.h"
 #include "HYDROGUI_UpdateFlags.h"
 
 #include <HYDROData_River.h>
@@ -56,9 +56,12 @@ void HYDROGUI_RiverBottomOp::startOperation()
 {
   HYDROGUI_Operation::startOperation();
 
-  HYDROGUI_RiverBottomDlg* aPanel = ::qobject_cast<HYDROGUI_RiverBottomDlg*>( inputPanel() );
+  if ( isApplyAndClose() )
+  {
+    HYDROGUI_RiverBottomDlg* aPanel = ::qobject_cast<HYDROGUI_RiverBottomDlg*>( inputPanel() );
 
-  aPanel->reset();
+    aPanel->reset();
+  }
 }
 
 void HYDROGUI_RiverBottomOp::abortOperation()