mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-15 10:08:34 +05:00
0020693: EDF 1288 SMESH: Problem to recompute a mesh with a sub-mesh and a conversion linear-quadratic
+ if ( myMesh->HasModificationsToDiscard() && // issue 0020693 + SUIT_MessageBox::question( desktop(), tr( "SMESH_WARNING" ), + tr( "FULL_RECOMPUTE_QUESTION" ), + tr( "SMESH_BUT_YES" ), tr( "SMESH_BUT_NO" ), 1, 0 ) == 0 ) + myMesh->Clear();
This commit is contained in:
parent
a5103fc7f7
commit
38824d786e
@ -698,6 +698,11 @@ void SMESHGUI_BaseComputeOp::computeMesh()
|
|||||||
if ( errors->length() > 0 ) {
|
if ( errors->length() > 0 ) {
|
||||||
aHypErrors = SMESH::GetMessageOnAlgoStateErrors( errors.in() );
|
aHypErrors = SMESH::GetMessageOnAlgoStateErrors( errors.in() );
|
||||||
}
|
}
|
||||||
|
if ( myMesh->HasModificationsToDiscard() && // issue 0020693
|
||||||
|
SUIT_MessageBox::question( desktop(), tr( "SMESH_WARNING" ),
|
||||||
|
tr( "FULL_RECOMPUTE_QUESTION" ),
|
||||||
|
tr( "SMESH_BUT_YES" ), tr( "SMESH_BUT_NO" ), 1, 0 ) == 0 )
|
||||||
|
myMesh->Clear();
|
||||||
SUIT_OverrideCursor aWaitCursor;
|
SUIT_OverrideCursor aWaitCursor;
|
||||||
try {
|
try {
|
||||||
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
|
Loading…
Reference in New Issue
Block a user