Salome HOME
debug of DTM object
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_DeleteOp.cxx
index 78ab4dec9b51b93c0dbd251e066ccc37edaddfce..8425cb1d8e1181f7b6c4e1d0a97a51e5545414c5 100644 (file)
@@ -21,6 +21,7 @@
 #include "HYDROGUI_DeleteDlg.h"
 #include "HYDROGUI_Module.h"
 #include "HYDROGUI_Tool.h"
+#include "HYDROGUI_Tool2.h"
 #include "HYDROGUI_UpdateFlags.h"
 
 #include <HYDROData_Object.h>
@@ -84,7 +85,7 @@ void HYDROGUI_DeleteOp::startOperation()
 
   // check the back-references
   QMap<QString,HYDROData_SequenceOfObjects> aBackObjects =
-    HYDROGUI_Tool::GetObjectsBackReferences( module(), anObjNames );
+    HYDROGUI_Tool::GetObjectsBackReferences( doc(), anObjNames );
 
   QMap<QString,HYDROData_SequenceOfObjects>::const_iterator anIt = aBackObjects.begin(),
                                                             aLast = aBackObjects.end();
@@ -168,4 +169,6 @@ void HYDROGUI_DeleteOp::startOperation()
 
   module()->update( UF_Model | UF_Viewer | UF_OCCViewer | UF_VTKViewer );
   commit();
+
+  module()->enableLCMActions();
 }