mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-02-05 19:14:16 +05:00
PAL13330 (When mesh generation does not success, trace where)
Set SUIT_OverrideCursor during computation
This commit is contained in:
parent
d0fa5c0e05
commit
a4c5cc32c6
@ -781,6 +781,7 @@ void SMESHGUI_ComputeOp::startOperation()
|
|||||||
onCancel();
|
onCancel();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
SUIT_OverrideCursor aWaitCursor;
|
||||||
try {
|
try {
|
||||||
if (gen->Compute(aMesh, myMainShape)) {
|
if (gen->Compute(aMesh, myMainShape)) {
|
||||||
computeFailed = false;
|
computeFailed = false;
|
||||||
@ -796,16 +797,18 @@ void SMESHGUI_ComputeOp::startOperation()
|
|||||||
// return;
|
// return;
|
||||||
// }
|
// }
|
||||||
}
|
}
|
||||||
if ( _PTR(SObject) aMeshSObj = SMESH::FindSObject(aMesh)) {
|
|
||||||
SMESH::ModifiedMesh(aMeshSObj, !computeFailed, aMesh->NbNodes() == 0);
|
|
||||||
myDlg->myMeshName->setText( aMeshSObj->GetName() );
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
catch(const SALOME::SALOME_Exception & S_ex){
|
catch(const SALOME::SALOME_Exception & S_ex){
|
||||||
SalomeApp_Tools::QtCatchCorbaException(S_ex);
|
SalomeApp_Tools::QtCatchCorbaException(S_ex);
|
||||||
}
|
}
|
||||||
|
if ( _PTR(SObject) aMeshSObj = SMESH::FindSObject(aMesh)) {
|
||||||
|
myDlg->myMeshName->setText( aMeshSObj->GetName() );
|
||||||
|
SMESH::ModifiedMesh(aMeshSObj, !computeFailed, aMesh->NbNodes() == 0);
|
||||||
|
}
|
||||||
update( UF_ObjBrowser | UF_Model );
|
update( UF_ObjBrowser | UF_Model );
|
||||||
|
|
||||||
|
// SHOW MESH
|
||||||
|
|
||||||
if ( getSMESHGUI()->automaticUpdate() ) {
|
if ( getSMESHGUI()->automaticUpdate() ) {
|
||||||
SVTK_ViewWindow* aVTKView = SMESH::GetViewWindow(getSMESHGUI(), true);
|
SVTK_ViewWindow* aVTKView = SMESH::GetViewWindow(getSMESHGUI(), true);
|
||||||
if (aVTKView) {
|
if (aVTKView) {
|
||||||
|
Loading…
Reference in New Issue
Block a user