Salome HOME
Method isValid is redefined to allow other operations is started above this one.
[modules/smesh.git] / src / SMESHGUI / SMESHGUI_AddSubMeshOp.cxx
index 64da71a7fb7508a540ba5b2065ccdf0cb8c8e27a..1ed50e77719f74314ed3c3d49d40403599fc1840 100644 (file)
@@ -62,6 +62,7 @@ SMESHGUI_AddSubMeshOp::SMESHGUI_AddSubMeshOp()
   myHypothesisFilter( 0 ),
   myAlgorithmFilter( 0 )
 {
+  setAutoResumed( true );
 }
 
 //=================================================================================
@@ -357,3 +358,16 @@ SMESH::SMESH_subMesh_var SMESHGUI_AddSubMeshOp::addSubMesh( SMESH::SMESH_Mesh_pt
 
   return aSubMesh._retn();
 }
+
+//=================================================================================
+// function : isValid
+// purpose  :
+//=================================================================================
+bool SMESHGUI_AddSubMeshOp::isValid( SUIT_Operation* theOtherOp ) const
+{
+  if ( theOtherOp && theOtherOp->inherits( "SMESHGUI_InitMeshOp" ) )
+    return true;
+  else
+    return false;
+
+}