Salome HOME
PAL13330 (When mesh generation does not success, trace where) V3_2_6 V3_2_6pre5
authoreap <eap@opencascade.com>
Wed, 18 Apr 2007 13:05:08 +0000 (13:05 +0000)
committereap <eap@opencascade.com>
Wed, 18 Apr 2007 13:05:08 +0000 (13:05 +0000)
   Set  SUIT_OverrideCursor during computation

src/SMESHGUI/SMESHGUI_ComputeDlg.cxx

index 3d9a35d8bb6f1c7f14cf4f4c909b5c692d121e46..5ce9868764a3ea9944b89d288f0f4c1a2e98eee2 100644 (file)
@@ -781,6 +781,7 @@ void SMESHGUI_ComputeOp::startOperation()
         onCancel();
         return;
       }
+      SUIT_OverrideCursor aWaitCursor;
       try {
         if (gen->Compute(aMesh, myMainShape)) {
           computeFailed = false;
@@ -796,16 +797,18 @@ void SMESHGUI_ComputeOp::startOperation()
 //             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){
         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 );
 
+      // SHOW MESH
+
       if ( getSMESHGUI()->automaticUpdate() ) {
         SVTK_ViewWindow* aVTKView = SMESH::GetViewWindow(getSMESHGUI(), true);
         if (aVTKView) {