synchronize myBadMeshBtn and myBadMeshToGroupBtn

This commit is contained in:
eap 2013-11-18 10:27:22 +00:00
parent b099b4c7c3
commit fc83dc7660

View File

@ -1313,6 +1313,7 @@ void SMESHGUI_BaseComputeOp::currentCellChanged()
myCompDlg->myPublishBtn->setEnabled( publishEnable ); myCompDlg->myPublishBtn->setEnabled( publishEnable );
myCompDlg->myShowBtn ->setEnabled( showEnable ); myCompDlg->myShowBtn ->setEnabled( showEnable );
myCompDlg->myBadMeshBtn->setEnabled( hasBadMesh && ( nbSelected == 1 )); 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 ); tbl->setWordWrap( true );
if ( hasBadMesh ) if ( hasBadMesh )
{
aCompDlg->myBadMeshBtn->show(); aCompDlg->myBadMeshBtn->show();
aCompDlg->myBadMeshToGroupBtn->show();
}
else else
{
aCompDlg->myBadMeshBtn->hide(); aCompDlg->myBadMeshBtn->hide();
aCompDlg->myBadMeshToGroupBtn->hide();
}
tbl->setCurrentCell(0,0); tbl->setCurrentCell(0,0);
currentCellChanged(); // to update buttons currentCellChanged(); // to update buttons
} }