Salome HOME
22316: EDF 2719 SMESH: Split hexas into prisms
authoreap <eap@opencascade.com>
Tue, 21 Jan 2014 09:24:53 +0000 (09:24 +0000)
committereap <eap@opencascade.com>
Tue, 21 Jan 2014 09:24:53 +0000 (09:24 +0000)
 disable dialog if a mesh includes no hexahedra

src/SMESHGUI/SMESHGUI_MultiEditDlg.cxx

index a252ce333238a2c3080adcea34843c64534c507b..a8682ee9581883b6bc93908dce1068e46ed4343f 100755 (executable)
@@ -1698,6 +1698,7 @@ void SMESHGUI_SplitVolumesDlg::on3d2dChanged(int isPrism)
   }
   SMESHGUI_MultiEditDlg::on3d2dChanged( !myEntityType );
   myEntityType = 1; // == VOLUME
+  onSelectionDone();
 }
 
 //================================================================================
@@ -1788,6 +1789,8 @@ void SMESHGUI_SplitVolumesDlg::onSelectionDone()
     }
     updateButtons();
   }
+
+  myCriterionGrp->setEnabled( !myMesh->_is_nil() && nbElemsInMesh() > 0 );
 }
 
 //================================================================================