Salome HOME
Method isValid is redefined to allow other operations is started above this one.
[modules/smesh.git] / src / SMESHGUI / SMESHGUI_InitMeshOp.cxx
index 064d8174dc3245dc4400ab73b90a80de6dbef35b..1165258e7fbe642cb47aecdf4bbe1b3742bb1432 100644 (file)
@@ -60,6 +60,7 @@ SMESHGUI_InitMeshOp::SMESHGUI_InitMeshOp()
   myHypothesisFilter( 0 ),
   myAlgorithmFilter( 0 )
 {
+  setAutoResumed( true );
 }
 
 //=================================================================================
@@ -321,3 +322,29 @@ void SMESHGUI_InitMeshOp::onSelectionChanged( int id )
       myDlg->clearSelection( id );
   }
 }
+
+//=================================================================================
+// function : isValid
+// purpose  :
+//=================================================================================
+bool SMESHGUI_InitMeshOp::isValid( SUIT_Operation* theOtherOp ) const
+{
+  if ( theOtherOp && theOtherOp->inherits( "SMESHGUI_AddSubMeshOp" ) )
+    return true;
+  else
+    return false;
+    
+}
+
+
+
+
+
+
+
+
+
+
+
+
+