From 3f7c707fd9f4ede2b7a8e5e83493d234ee2bb4f9 Mon Sep 17 00:00:00 2001 From: eap Date: Tue, 21 Jan 2014 09:24:53 +0000 Subject: [PATCH] 22316: EDF 2719 SMESH: Split hexas into prisms disable dialog if a mesh includes no hexahedra --- src/SMESHGUI/SMESHGUI_MultiEditDlg.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/SMESHGUI/SMESHGUI_MultiEditDlg.cxx b/src/SMESHGUI/SMESHGUI_MultiEditDlg.cxx index a252ce333..a8682ee95 100755 --- a/src/SMESHGUI/SMESHGUI_MultiEditDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_MultiEditDlg.cxx @@ -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 ); } //================================================================================ -- 2.39.2