]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
synchronize myBadMeshBtn and myBadMeshToGroupBtn
authoreap <eap@opencascade.com>
Mon, 18 Nov 2013 10:27:22 +0000 (10:27 +0000)
committereap <eap@opencascade.com>
Mon, 18 Nov 2013 10:27:22 +0000 (10:27 +0000)
src/SMESHGUI/SMESHGUI_ComputeDlg.cxx

index 7cc8229b2f07d46e03c0415aa6da3c40e1fe2265..7e89b06300c8d172a3657c8654ab063b269f73a7 100644 (file)
@@ -1313,6 +1313,7 @@ void SMESHGUI_BaseComputeOp::currentCellChanged()
   myCompDlg->myPublishBtn->setEnabled( publishEnable );
   myCompDlg->myShowBtn   ->setEnabled( showEnable );
   myCompDlg->myBadMeshBtn->setEnabled( hasBadMesh && ( nbSelected == 1 ));
+  myCompDlg->myBadMeshToGroupBtn->setEnabled( hasBadMesh && ( nbSelected == 1 ));
 }
 
 //================================================================================
@@ -2209,10 +2210,15 @@ void SMESHGUI_BaseComputeOp::showEvaluateResult(const SMESH::long_array& theRes,
       tbl->setWordWrap( true );
 
       if ( hasBadMesh )
+      {
         aCompDlg->myBadMeshBtn->show();
+        aCompDlg->myBadMeshToGroupBtn->show();
+      }
       else
+      {
         aCompDlg->myBadMeshBtn->hide();
-
+        aCompDlg->myBadMeshToGroupBtn->hide();
+      }
       tbl->setCurrentCell(0,0);
       currentCellChanged(); // to update buttons
     }