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 7cc8229..7e89b06 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
     }