mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-28 10:20:34 +05:00
synchronize myBadMeshBtn and myBadMeshToGroupBtn
This commit is contained in:
parent
b099b4c7c3
commit
fc83dc7660
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user